Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 744 Bytes

README.md

File metadata and controls

27 lines (17 loc) · 744 Bytes

How to build and run hello world application for android device

Sources

Sources are placed in src directory

Building

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.

  1. libHelloWorld.so shared library.
  2. helloWorld executable

Push to device

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

Run on device

Make command to run on device

$ make run

It runs it through adb shell.