SDL/android-project
Sylvain Becker 59df6d6b13 Android: don't allow multiple instance of SDLActivity
Default launch mode (standard) allows multiple instances of the SDLActivity.
( https://developer.android.com/guide/topics/manifest/activity-element#lmode )

Not sure this is intended in SDL as this doesn't work. There are static
 variables in Java, in C code which make this impossible (allow one android_window) and
 also Audio print errors.

There is also some code added in onDestroy as if it would be able to
re-initialize: https://hg.libsdl.org/SDL/rev/27686adb08c3

Bug Android activity life-cycle seems to show there is not transition to get out
of onDestroy()
https://developer.android.com/reference/android/app/Activity#ActivityLifecycle

( can be tested with "adb shell am start  my.package.org/.MainActivity"
  and "adb shell am start -n  my.package.org/.MainActivity" )

Send me a message if there are real use-case for this !
2019-01-07 17:06:50 +01:00
..
app Android: don't allow multiple instance of SDLActivity 2019-01-07 17:06:50 +01:00
gradle/wrapper Updated Android project files and documentation 2018-10-28 10:31:06 -07:00
build.gradle Updated Android project files and documentation 2018-10-28 10:31:06 -07:00
gradle.properties Switched to new style gradle Android application build process 2017-10-23 15:23:43 -07:00
gradlew Switched to new style gradle Android application build process 2017-10-23 15:23:43 -07:00
gradlew.bat Switched to new style gradle Android application build process 2017-10-23 15:23:43 -07:00
settings.gradle Switched to new style gradle Android application build process 2017-10-23 15:23:43 -07:00