Programming Tips - How do I use the Android NDK?
Date: 2015jul27
OS: Android
Keywords: intro, tutorial, jni, native
Q. How do I use the Android NDK?
A. I found this tutorial to be good:
http://mindtherobot.com/blog/452/android-beginners-ndk-setup-step-by-step/
Lets say you did something in NDK and want to change something years
later (like me), here's how to do that:
- Make the changes you want to your C++ code in Eclipse
- Start cygwin shell
- cd /cydrive/f/workspace/MyProject (If its on drive F: )
- /cgydrive/f/android-ndk-r10e/ndk-build
- Return to Eclipse and run your app as usual.