summaryrefslogtreecommitdiff
path: root/ide/AndroidStudio3
diff options
context:
space:
mode:
Diffstat (limited to 'ide/AndroidStudio3')
-rw-r--r--ide/AndroidStudio3/README.md49
-rw-r--r--ide/AndroidStudio3/app/app.iml17
-rw-r--r--ide/AndroidStudio3/app/src/main/cpp/HelloAndroid.cxx2
-rw-r--r--ide/AndroidStudio3/gradlew.bat (renamed from ide/AndroidStudio3/gradlew.rename_to_bat)0
4 files changed, 33 insertions, 35 deletions
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
+
+List of short little helpers:
-> stop
-> setprop libc.debug.malloc 10
-> // setprop libc.debug.malloc.program org.fltk.android_hello
-> setprop libc.debug.malloc.options "guard fill"
-> start
+```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 @@
<sourceFolder url="file://$MODULE_DIR$/src/debug/jni" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/debug/rs" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/debug/shaders" isTestSource="false" />
- <sourceFolder url="file://$MODULE_DIR$/src/testDebug/res" type="java-test-resource" />
- <sourceFolder url="file://$MODULE_DIR$/src/testDebug/resources" type="java-test-resource" />
- <sourceFolder url="file://$MODULE_DIR$/src/testDebug/assets" type="java-test-resource" />
- <sourceFolder url="file://$MODULE_DIR$/src/testDebug/aidl" isTestSource="true" />
- <sourceFolder url="file://$MODULE_DIR$/src/testDebug/java" isTestSource="true" />
- <sourceFolder url="file://$MODULE_DIR$/src/testDebug/jni" isTestSource="true" />
- <sourceFolder url="file://$MODULE_DIR$/src/testDebug/rs" isTestSource="true" />
- <sourceFolder url="file://$MODULE_DIR$/src/testDebug/shaders" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTestDebug/res" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTestDebug/resources" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTestDebug/assets" type="java-test-resource" />
@@ -72,6 +64,14 @@
<sourceFolder url="file://$MODULE_DIR$/src/androidTestDebug/jni" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTestDebug/rs" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTestDebug/shaders" isTestSource="true" />
+ <sourceFolder url="file://$MODULE_DIR$/src/testDebug/res" type="java-test-resource" />
+ <sourceFolder url="file://$MODULE_DIR$/src/testDebug/resources" type="java-test-resource" />
+ <sourceFolder url="file://$MODULE_DIR$/src/testDebug/assets" type="java-test-resource" />
+ <sourceFolder url="file://$MODULE_DIR$/src/testDebug/aidl" isTestSource="true" />
+ <sourceFolder url="file://$MODULE_DIR$/src/testDebug/java" isTestSource="true" />
+ <sourceFolder url="file://$MODULE_DIR$/src/testDebug/jni" isTestSource="true" />
+ <sourceFolder url="file://$MODULE_DIR$/src/testDebug/rs" isTestSource="true" />
+ <sourceFolder url="file://$MODULE_DIR$/src/testDebug/shaders" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/main/res" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/main/assets" type="java-resource" />
@@ -104,6 +104,7 @@
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/javaPrecompile" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/jniLibs" />
+ <excludeFolder url="file://$MODULE_DIR$/build/intermediates/lint" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/manifests" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/prebuild" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/res" />
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
index 8a0b282aa..8a0b282aa 100644
--- a/ide/AndroidStudio3/gradlew.rename_to_bat
+++ b/ide/AndroidStudio3/gradlew.bat