可以参考StackOverFlow的同类问题
jobject obj = ... // This is the object you want to call the method on
jbyteArray arr = (jbyteArray) (*env)->CallObjectMethod(env, obj, getVal);
int count = (*env)->GetArrayLength(env, arr);
jbyte* bytes = (*env)->GetByteArrayElements(env, arr, 0);