Book Image

Android NDK: Beginner's Guide

By : Sylvain Ratabouil
Book Image

Android NDK: Beginner's Guide

By: Sylvain Ratabouil

Overview of this book

Table of Contents (18 chapters)
Android NDK Beginner's Guide Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Time for action – creating a native Android project


Eclipse provides a wizard to help us set up our project:

  1. Launch Eclipse. In the main menu, go to File | New | Project….

  2. Then, in the opened New project wizard, go to Android | Android Application Project and click on Next.

  3. In the next screen, enter project properties as follows and click on Next again:

  4. Click on Next twice, leaving default options, to go to the Create activity wizard screen. Select Blank activity with Fragment and click on Next.

  5. Finally, in the Blank Activity screen, enter activity properties as follows:

  6. Click on Finish to validate. After a few seconds, the wizard disappears and the project Store is displayed in Eclipse.

  7. Add native C/C++ support to the project. Select the project Store in the Package Explorer view and from its right-click context menu, go to Android Tools | Add Native Support....

  8. In the opened Add Android Native Support popup, set the library name to com_packtpub_store_Store and click on Finish.

  9. The jni and obj directories...