Building an Android NDK application in Eclipse
The previous recipe discusses how to build an Android NDK application in the command line. This recipe demonstrates how to do it in the Eclipse IDE.
Getting ready
Add NDK Preferences. Start Eclipse, then click on Window | Preferences. In the Preferences window, select NDK under Android. Click on Browse and select the NDK root
folder. Click on OK.
How to do it…
The following steps create an NDK project using Eclipse:
- Create an Android application named
HelloNDKEclipse
. Set the package name ascookbook.chapter3
. Create an activity namedHelloNDKEclipseActivity
. Please refer to the Loading native libraries ...
Get Android Native Development Kit Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.