Guest User

Untitled

a guest
Jun 19th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. // Calling method. Return String to android.
  2. jstring
  3. getKeyFromC(JNIEnv *env, jobject thiz) {
  4. char *key = getKey();
  5. jstring str = (*env)->NewStringUTF(env, key);
  6. return str;
  7. }
  8.  
  9. // Called method.
  10. getKey(){
  11. char key[1555] = "....";
  12. return &keys[0];
  13. }
  14.  
  15. JNI DETECTED ERROR IN APPLICATION: input is not valid Modified UTF-8: illegal
  16. start byte 0xb6
Add Comment
Please, Sign In to add comment