Here's the general outline of how you work with the NDK tools:
Place your native sources under
<project>/jni/Android.mk to describe your native sources to the NDK build system
Build your native code by running the 'ndk-build' script from your project's directory. It is located in the top-level NDK 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 your application using the SDK tools in the usual way. The SDK build tools will package the shared libraries in the application's deployable
For complete information on all of the steps listed above, please see the documentation included with the NDK package.