From 005a744d68839ea858a89f5c7268b108becead0c Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Thu, 3 Jan 2019 23:16:59 +0100 Subject: [PATCH] Android builds tested successfully after changeover to git --- README.macOS.md | 5 +- ide/AndroidStudio3/README.md | 49 +++++++++---------- ide/AndroidStudio3/app/app.iml | 17 ++++--- .../app/src/main/cpp/HelloAndroid.cxx | 2 +- .../{gradlew.rename_to_bat => gradlew.bat} | 0 5 files changed, 37 insertions(+), 36 deletions(-) rename ide/AndroidStudio3/{gradlew.rename_to_bat => gradlew.bat} (100%) diff --git a/README.macOS.md b/README.macOS.md index 44c448cca..8c046d6b0 100644 --- a/README.macOS.md +++ b/README.macOS.md @@ -477,7 +477,7 @@ fltk-config --compile main.cxx -### Make an Application Launchable by Dropping Files on its Icon +## Make an Application Launchable by Dropping Files on its Icon TODO: update for FLTK 1.4 @@ -497,6 +497,9 @@ to the Info.plist file you have prepared. - Rebuild your application. +## Links + +[GitHub, git, forking, fetching. and pull requests](https://gist.github.com/Chaser324/ce0505fbed06b947d962) ## DOCUMENT HISTORY diff --git a/ide/AndroidStudio3/README.md b/ide/AndroidStudio3/README.md index 3c27f64ea..60bdbcaf9 100644 --- a/ide/AndroidStudio3/README.md +++ b/ide/AndroidStudio3/README.md @@ -1,49 +1,46 @@ -Hello Android -============= +# 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. +## Pre-requisites + +* Android Studio 3.0+ with [NDK](https://developer.android.com/ndk/) bundle. -Getting Started ---------------- +## Getting Started + 1. [Download Android Studio](http://developer.android.com/sdk/index.html) 1. Launch Android Studio. -1. Open the Android directory inside the FLTK directory. -1. Open the AndroidStudio project by loading the HelloAndroid directory. +1. Open the `IDE` directory inside the FLTK directory. +1. Open the Android Studio project by loading the `AndroidStudio3` 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 - -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 -------- +## 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 +## Android Shell -> stop -> setprop libc.debug.malloc 10 -> // setprop libc.debug.malloc.program org.fltk.android_hello -> setprop libc.debug.malloc.options "guard fill" -> start +List of short little helpers: +```bash +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/app.iml b/ide/AndroidStudio3/app/app.iml index 14dc6e9e9..916548171 100644 --- a/ide/AndroidStudio3/app/app.iml +++ b/ide/AndroidStudio3/app/app.iml @@ -56,14 +56,6 @@ - - - - - - - - @@ -72,6 +64,14 @@ + + + + + + + + @@ -104,6 +104,7 @@ + diff --git a/ide/AndroidStudio3/app/src/main/cpp/HelloAndroid.cxx b/ide/AndroidStudio3/app/src/main/cpp/HelloAndroid.cxx index ce1e8b37d..1d0524bac 100644 --- a/ide/AndroidStudio3/app/src/main/cpp/HelloAndroid.cxx +++ b/ide/AndroidStudio3/app/src/main/cpp/HelloAndroid.cxx @@ -135,4 +135,4 @@ * test/hello.cxx : + 'hello' works fine, italics, shadow, etc. * test/label.cxx : + 'label' works - */ \ No newline at end of file + */ diff --git a/ide/AndroidStudio3/gradlew.rename_to_bat b/ide/AndroidStudio3/gradlew.bat similarity index 100% rename from ide/AndroidStudio3/gradlew.rename_to_bat rename to ide/AndroidStudio3/gradlew.bat