Skip to main content

Posts

Showing posts from August, 2014

Android NDK Command Line Compilation

Android NDK Command Line Compilation (Notes)
cmp.20140826
ed.20140826.01

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:
Example:
# 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