Writing Native Code for Android Systems. Why ndk. There exist large c++ code libraries E.g., Audio and video compression, e.g., Ogg Vorbis , The LAME Project (mp3), .. OpenGL O penSL ES Low level audio Advanced CPU features
PowerPoint Slideshow about 'Writing Native Code for Android Systems' - stefan
An Image/Link below is provided (as is) to download presentation
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
Describe project sources in MyProject/jni/Android.mk
Like a make file, but much easier
Build project by running the command ../android-ndk-r5b/ndk-build from your MyProject directory
ndk-build is like make
Generates shared lib (libXX.so file) and places it in correct directory so the java program can get it
Make .apk file by building app in eclipse
Important: whenever you make a change in the c++ program, of coruse, you need to run ndk-build. But, you also must rerun the java compile. To do this, make a trivial change in your java code and resave.