2019-01-03 22:16:59 +00:00
# Hello Android
2018-03-18 13:44:37 +00:00
2018-03-02 17:26:30 +00:00
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.
2018-03-02 16:30:45 +00:00
2018-03-18 13:44:37 +00:00
2019-01-03 22:16:59 +00:00
## Pre-requisites
2018-03-02 16:30:45 +00:00
2019-01-03 22:16:59 +00:00
* Android Studio 3.0+ with [NDK ](https://developer.android.com/ndk/ ) bundle.
## Getting Started
2018-03-18 13:44:37 +00:00
2018-03-02 16:30:45 +00:00
1. [Download Android Studio ](http://developer.android.com/sdk/index.html )
1. Launch Android Studio.
2019-01-03 22:16:59 +00:00
1. Open the `IDE` directory inside the FLTK directory.
1. Open the Android Studio project by loading the `AndroidStudio3` directory.
2018-03-02 16:30:45 +00:00
1. Click *Run/Run 'app'* .
2018-03-18 13:44:37 +00:00
2019-01-03 22:16:59 +00:00
## Support
2018-03-18 13:44:37 +00:00
2018-03-02 17:26:30 +00:00
If you've found an error in these samples, please [file an issue ](http://www.fltk.org/str.php ). Patches are encouraged, and may be submitted via the same FLTK Bug & Feature system.
2018-03-02 16:30:45 +00:00
2018-03-02 17:26:30 +00:00
Please visit the FLTK [Forum ](http://www.fltk.org/newsgroups.php ) for additional help.
2018-03-02 16:30:45 +00:00
2018-03-18 13:44:37 +00:00
2019-01-03 22:16:59 +00:00
## License
2018-03-02 17:26:30 +00:00
FLTK is provided under the terms of the [GNU Library Public License, Version 2 with exceptions ](http://www.fltk.org/COPYING.php ) that allow for static linking.
2018-03-18 13:44:37 +00:00
2019-01-03 22:16:59 +00:00
## Android Shell
List of short little helpers:
2018-03-18 13:44:37 +00:00
2019-01-03 22:16:59 +00:00
```bash
am start -n org.fltk.android_hello/android.app.NativeActivity
am force-stop org.fltk.android_hello
2018-03-18 13:44:37 +00:00
2019-01-03 22:16:59 +00:00
stop
setprop libc.debug.malloc 10
// setprop libc.debug.malloc.program org.fltk.android_hello
setprop libc.debug.malloc.options "guard fill"
start
```