I have an Android application that I'm writing, and it uses a module that runs on the JNI layer. I have no control or knowledge on how the NDK module works, and it sometimes throws an un-handled exception, and my app crashes.
Is there any way to catch those JNI propagating exceptions in the Java layer? Or at least detect when the DNK is going to crash due to an exception?