First, you need Android Ndk, download it. you need to add android ndk to your project, so go to windows β Preference β Ndk β and it looks at your ndk path here.
After that, create one project for Android and right-click on the project and go to add built-in support, it will automatically create one .so file.
Just clean and create your project, including everything you need for ndk development.
Now create a nativ method in your activity and generate the header file using the javah command corresponding to the activity.
Anupam jain
source share