fplutil
An open source project by
FPL.
|
libfplutil_main
implements an Android NativeActivity entry point android_main()
which calls the traditional C/C++ entry point int main()
. This makes it possible to write an application with a int main()
entry point (just like any standard C application), link against this library (see Linking) and have it run on Android.
For example, the following prints "Hello World" to the Android log:
Android applications must process system events otherwise they trigger an "Application Not Responding" dialog (ANR) which prompts the user to close the application. For long running tasks the ProcessAndroidEvents()
function makes it easy to process events and avoid the ANR dialog.
For example: