0

Just run this small jni function and exception was thrown, because I specifically pointed out the wrong class, solely for the test.:

JNIEXPORT void JNICALL
Java_org_package_Native_fc(JNIEnv *env, jclass type) {
    jclass cls = (*env)->FindClass(env, "package/WrongClass");
    // i want work , dont crush me ... What condition i can use or exception catching or ...
}

How to catch exceptions INSIDE c code and work further, rather than an entire APK application crashing.

ilw
  • 2,499
  • 5
  • 30
  • 54

0 Answers0