fplutil
An open source project by
FPL.
|
examples/libfplutil_example
is a sample application which prints "Hello World" to the Android log. It's as possible to compile the application for other platforms and see "Hello World" printed to the standard output stream.
The following sections will describe:
Building, installing and running the application using fplutil's build tool consists of the following steps:
For example, the following will build the application APK in debug, install the APK on an attached Android device and execute the application:
Which should display:
--------- beginning of /dev/log/main --------- beginning of /dev/log/system I/main ( 550): Hello, World!
The following steps only need to be performed if build_all_android isn't sufficient for your build environment.
To build the shared library that constitutes the native component of the application:
For example:
This will create a shared library in the libfplutil_example/libs
directory which needs to be packaged into an APK before it can be deployed to a device. To do this you need to:
For example, the following generates a project to build against Android API Level 18 and builds an APK:
This results in the application's APK in bin/libfplutil_example-debug.apk
.
To run this application:
For example:
Finally, it's possible to view the application's output using adb logcat
:
Which should display:
--------- beginning of /dev/log/main --------- beginning of /dev/log/system I/main ( 550): Hello, World!