Showing posts with label JNI Example 3. Show all posts
Showing posts with label JNI Example 3. Show all posts

Saturday, 30 January 2021

Android JNI Example 3 : Handling Exception

Hi Guys !!! Hope all is well

This is my third post on Android JNI example series.  Previous two post link


In this example I am going to discuss following :- 
  • Handle Java/App exception from native(jni)
  • Catch java/App exception in native and return back it to App
  • Example of Fatal exception in native

Below is application screenshot


The example code is on my github page

https://github.com/Saurabh-12/AndroidJNI

You can see code snippet for above example on my github page. So i am not doing it here copy paste.

Thanks
Saurabh 

Happy Coding !!! 

Build a Custom Kernel Module for Android

Hi Guys!!!Hope you are doing well !!!. Today I will describe how you can write a custom kernel module(Hello world) for Android and load it a...