/android-native-hello

Example of how to run purely native code in an Android emulator

Primary LanguageShellMIT LicenseMIT

android-native-hello

This repo provides a simple, automated and self-contained example demonstrating how to compile a purely native executable for Android and run it in an emulator.

Install

To install the Android cmd line tools, platform, emulator and NDK, run:

./install.sh

Build

To build the native application, run:

./build.sh

Run

To run the emulator, push the native app, invoke it and terminate, run:

./run.sh