I have passed a URL string from Java to C code as jstring
data type through the use of JNI. And my library method needs a char *
as url.
How can I convert jstring
in char *
?
P.S.: Is there any advantage of using jcharArray in C? (i.e. Passing char []
instead of string in native method)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…