The steps in building an Android NDK app are:
- Create a sub-directory called "
jni
" and place all the native sources here. - Create a "
Android.mk
" to describe your native sources to the NDK build system. - Build your native code by running the "
ndk-build
" (in NDK installed directory) script from your project's directory. The build tools copy the stripped, shared libraries needed by your application to the proper location in the application's project directory. - Finally, compile and run your application using the SDK tools in the usual way. The SDK build tools will package the shared libraries in the application's deployable "
.apk
" file.