Writing a Hello NDK program
With the environment set up, let's start writing the code in NDK. This recipe walks through a Hello NDK program.
Getting ready
The NDK development environment needs to be set up properly before starting to write the Hello NDK program. Please refer to previous recipes in this chapter, depending upon the platform of your choice.
How to do it…
Follow these steps to write, compile, and run the Hello NDK program:
- Start Eclipse, and select File | New | Android Project. Enter
HelloNDK
as the value for Project Name. Select Create new project in workspace. Then click on Next: - In the next window, select an Android version that you want ...
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.