There is Java class with getLong() and getCharArray() methods and I have jobject link to this class.
This code
jclass clsData = env->GetObjectClass(data);
jmethodID getVal = env->GetMethodID(clsData, "getLong", "()J");
jlong x = env->CallLongMethod(data, getVal);
give me access to long value returned by getLong().
jclass clsData = env->GetObjectClass(data);
jmethodID getVal = env->GetMethodID(clsData, "getCharArray", "()[C");
???
How to get access to character array?
you can get the char array like this way this is simple snippet from another post the complete post here