Skip to main content


Showing posts from August, 2014

Android NDK Command Line Compilation

Android NDK Command Line Compilation (Notes)

Configuration and Compilation: Example:
# > $ ndk-build // Build Targets, etc, but not necessary for Ant
> $ android update project --path . --subprojects --target 9
Ant Build: Example:
# ant debug // for debug:
> $ ant release

Installing to the Device:
# List Attached Devices:

> $ adb devices
List of devices attached
emulator-5554 device
emulator-5555 device

# Install to Device:
# -s, (use to select one of multiple devices).
# -r, (use to reinstall)
# Native Activity is a C++ only, (no Java), Android Sample App.

> $ adb -s emulator-5554 install -r NativeActivity.apk