diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2018-03-18 13:44:37 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2018-03-18 13:44:37 +0000 |
| commit | 5900d824e93be44a852741ca093d88023e2a516a (patch) | |
| tree | 1441a0d02e432f046ba0cd83cbc1ef64badf8a61 /ide/AndroidStudio3 | |
| parent | 7ff40388cbf2b4f1441efbc3b30f35017cab9304 (diff) | |
Android: Fixed bug when deleting complex clipping areas
Tested FLTK schemes - nice!
Fixed crashbug in timer
Fixed crashbug in mouse handler
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12771 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'ide/AndroidStudio3')
| -rw-r--r-- | ide/AndroidStudio3/README.md | 19 | ||||
| -rw-r--r-- | ide/AndroidStudio3/app/build.gradle | 2 | ||||
| -rw-r--r-- | ide/AndroidStudio3/app/src/main/cpp/HelloAndroid.cxx | 1 |
3 files changed, 20 insertions, 2 deletions
diff --git a/ide/AndroidStudio3/README.md b/ide/AndroidStudio3/README.md index 73bbbc4e9..3c27f64ea 100644 --- a/ide/AndroidStudio3/README.md +++ b/ide/AndroidStudio3/README.md @@ -1,12 +1,15 @@ 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](https://developer.android.com/ndk/) bundle. + Getting Started --------------- 1. [Download Android Studio](http://developer.android.com/sdk/index.html) @@ -15,16 +18,32 @@ Getting Started 1. Open the AndroidStudio project by loading the HelloAndroid directory. 1. 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](http://www.fltk.org/str.php). Patches are encouraged, and may be submitted via the same FLTK Bug & Feature system. Please visit the FLTK [Forum](http://www.fltk.org/newsgroups.php) for additional help. + License ------- 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. + + +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 + diff --git a/ide/AndroidStudio3/app/build.gradle b/ide/AndroidStudio3/app/build.gradle index dbe9d3dc9..fefeafe85 100644 --- a/ide/AndroidStudio3/app/build.gradle +++ b/ide/AndroidStudio3/app/build.gradle @@ -11,8 +11,6 @@ apply plugin: 'com.android.application' buildTypes { release { minifyEnabled false - proguardFiles getDefaultProguardFile('proguard-android.txt'), - 'proguard-rules.pro' } } externalNativeBuild { diff --git a/ide/AndroidStudio3/app/src/main/cpp/HelloAndroid.cxx b/ide/AndroidStudio3/app/src/main/cpp/HelloAndroid.cxx index 6fc009043..6be53dd75 100644 --- a/ide/AndroidStudio3/app/src/main/cpp/HelloAndroid.cxx +++ b/ide/AndroidStudio3/app/src/main/cpp/HelloAndroid.cxx @@ -55,6 +55,7 @@ void hello_cb(void*) int main(int argc, char **argv) { + Fl::scheme("gleam"); win1 = new Fl_Window(20+50, 10, 200, 200, "back"); win1->color(FL_RED); win1->box(FL_DOWN_BOX); |
