2153a93430
Note: we recommend `git config core.autocrlf true'. |
||
---|---|---|
.. | ||
app | ||
FL | ||
gradle/wrapper | ||
AndroidStudio3.iml | ||
build.gradle | ||
gradlew | ||
gradlew.rename_to_bat | ||
HelloAndroid.iml | ||
README.md | ||
settings.gradle |
Hello Android
Hello Android is an FLTK sample app that derives from the Android Studio sample project Native Plasma. This sample uses Android Studio 3 and CMake.
Pre-requisites
- Android Studio 3.0+ with NDK bundle.
Getting Started
- Download Android Studio
- Launch Android Studio.
- Open the Android directory inside the FLTK directory.
- Open the AndroidStudio project by loading the HelloAndroid directory.
- Click Run/Run 'app'.
Micrososft Windows Users
The file 'gradlew.zip' must be unzipped before you can use AndroidStudio. It contains the required file 'gradlew.bat'. This was neccessary because some svn setups block anything that looks like an executable file, including files that end in .bat .
Support
If you've found an error in these samples, please file an issue. Patches are encouraged, and may be submitted via the same FLTK Bug & Feature system.
Please visit the FLTK Forum for additional help.
License
FLTK is provided under the terms of the GNU Library Public License, Version 2 with exceptions that allow for static linking.
Android Shell
am start -n org.fltk.android_hello/android.app.NativeActivity am force-stop org.fltk.android_hello
stop setprop libc.debug.malloc 10 // setprop libc.debug.malloc.program org.fltk.android_hello setprop libc.debug.malloc.options "guard fill" start