Im trying to create an android app to read text from a text file using NDK .My C code reads a string into a variable and returns the string variable to java code .But when I
I think your definition jstring str1[20]; need to modify to char str1[20]. Because jstring type is defined as a jobject, it's not basic type of char.
jstring str1[20];
char str1[20]