How to build and run hello world application for android device
Sources are placed in src directory
Make sure that Android NDK is installed and ndk-build is accessible
$ make compile
The make command will call ndk-build in android directory. Current example builds two targets.
- libHelloWorld.so shared library.
- helloWorld executable
Make sure that the android device is connected to the machine and android platform tools (adb) are accessible
$ make push
It pushes the sharedy library and executable to /data/local/tmp location in device
Make command to run on device
$ make run
It runs it through adb shell.