This sample separates the application-specific parts of the NDK OpenGL 2.0 sample out of the main
body of code so you can start to play with OpenGL ES 2.0 on Android by hacking on one small
C++ file (
Installation of the NDK
As a reminder, installation of the NDK is straightforward.
All that is required is to download it and extract it wherever you prefer (next to the SDK being a good
The NDK is not backwards compatible, so you may need to update your SDK installation if you want
to use the newest NDK (and the NDK is still evolving rapidly so that is not a bad idea).
Obviously, if you want to try the NDK without disrupting a working SDK installation, you can grab an
older NDK version that matches your existing SDK and use that.
See the NDK documentation and grab the download link here:
Get the code here:
To build it, follow the instructions at the NDK guide linked-to above.
Note that you should run
from the commandline in the jni sub-directory of the project before doing a normal Eclipse build.