Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Android Native Development Kit Cookbook

You're reading from   Android Native Development Kit Cookbook Create Android apps using Native C/C++ with the expert guidance contained in this cookbook. From basic routines to advanced multimedia development, it helps you harness the full power of Android NDK.

Arrow left icon
Product type Paperback
Published in Mar 2013
Publisher Packt
ISBN-13 9781849691505
Length 346 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Liu Feipeng Liu Feipeng
Author Profile Icon Liu Feipeng
Liu Feipeng
Arrow right icon
View More author details
Toc

Table of Contents (16) Chapters Close

Android Native Development Kit Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Hello NDK 2. Java Native Interface FREE CHAPTER 3. Build and Debug NDK Applications 4. Android NDK OpenGL ES API 5. Android Native Application API 6. Android NDK Multithreading 7. Other Android NDK API 8. Porting and Using the Existing Libraries with Android NDK 9. Porting an Existing Application to Android with NDK Index

Introduction


Thanks to the Android native application APIs, it is possible to write an Android application with pure native code since Android API level 9 (Android 2.3, Gingerbread). That is, not a single line of Java code is needed. The Android native APIs are defined in several header files under the <NDK root>/platforms/android-<API level>/arch-arm/usr/include/android/ folder. Based on the features provided by the functions defined in these header files, they can be grouped as follows:

  • Activity lifecycle management:

    • native_activity.h

    • looper.h

  • Windows management:

    • rect.h

    • window.h

    • native_window.h

    • native_window_jni.h

  • Input (including key and motion events) and sensor events:

    • input.h

    • keycodes.h

    • sensor.h

  • Assets, configuration, and storage management:

    • configuration.h

    • asset_manager.h

    • asset_manager_jni.h

    • storage_manager.h

    • obb.h

In addition, Android NDK also provides a static library named native app glue to help create and manage native activities. The source code of this library can be found under the...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image