Commit graph

22 commits

Author SHA1 Message Date
Sylvain Becker
79da113ed7 Fixed bug 3918 - CMake support for android project 2019-08-11 15:23:37 +02:00
Sylvain Becker
102108aea3 Android: add hint SDL_HINT_ANDROID_BLOCK_ON_PAUSE
to set whether the event loop will block itself when the app is paused.
2019-04-05 09:16:30 +02:00
Sam Lantinga
986d77675f Updated minimum supported Android version to API 16, to match latest NDK toolchain 2019-01-12 12:11:06 -08:00
Sylvain Becker
730b8eab7b Fixed bug 3511 - documentation to end an Android application 2018-12-30 14:23:25 +01:00
Sam Lantinga
925eba4300 Updated Android project files and documentation 2018-10-28 10:31:06 -07:00
Sam Lantinga
16ffa91778 Updated required Android SDK to API 26, to match Google's new App Store requirements 2018-08-21 20:46:25 -07:00
Sam Lantinga
470afa6b34 On Android show the system UI when an SDL window is windowed, hide the system UI when it's fullscreen, like we do on iOS.
We're increasing the Android SDK minimum version to API 19, this doesn't increase the minimum target API, which is API 14.
2018-02-11 18:23:37 -08:00
Sam Lantinga
9d580dd242 Added the old ant Android build project structure 2017-10-28 12:11:25 -07:00
Sam Lantinga
8216efa3bd Updated Android build tools version, which bumped minimum deployment target to API 14
Also added native code to the Android gradle project, which allows using gradle or Android Studio to build the entire SDL application without a separate ndk-build step.
2017-10-23 23:23:47 -07:00
Sam Lantinga
cea35f5176 Switched to new style gradle Android application build process
--HG--
rename : android-project/jni/src/Android.mk => android-project/app/jni/src/Android.mk
rename : android-project/src/org/libsdl/app/SDL.java => android-project/app/src/main/java/org/libsdl/app/SDL.java
rename : android-project/src/org/libsdl/app/SDLAudioManager.java => android-project/app/src/main/java/org/libsdl/app/SDLAudioManager.java
rename : android-project/src/org/libsdl/app/SDLControllerManager.java => android-project/app/src/main/java/org/libsdl/app/SDLControllerManager.java
2017-10-23 15:23:43 -07:00
Sam Lantinga
0dadd6b804 Update Android SDK required to API level 16
Sylvain

Some API 16 methods are used (InputDevice: getDescriptor(), getVibrator()), so we need to compile at least with SDK API 16. Hence default.properties and project.properties have been modified to use android-16.

There are also some modification to SDLActivity.java not to use getVibrator() if we run under API 16. And not to check to presence of hasVibrator() if we are under API 11.
-some hard-coded constant can be expandend.
- rename a local variable (hasVibrator to hasVibratorService)
2017-08-31 15:12:08 -07:00
Sam Lantinga
dd42d3c67c Added Matt Styles' tutorial on building SDL for Android with Visual Studio 2017-08-19 00:27:11 -07:00
Ryan C. Gordon
927b70a3ad readme: more HTTPS changes. 2017-02-16 13:55:12 -05:00
Philipp Wiesemann
cbe91a15bc Android: Split long line in README. 2016-10-15 20:01:50 +02:00
Sam Lantinga
b33fde0338 Fixed bug 2983 - Update Android.readme to include Tegra Graphics Debugger compatibility tip
Michael Labbé

NVidia has released some pretty nice Tegra profiling tools for their Android devices. The NVidia Tegra Graphics Debugger works by providing an interposer library that intercepts ES2 and EGL calls.  You must link against these libraries.

Unfortunately, this quietly fails with SDL2 because libEGL and libGLES2 are dynamically loaded with dlopen().

NVidia offers a secondary approach to using the Tegra Graphics Debugger: root your device and install a global interposer library.  Almost no devs will try this first if they don’t have a rooted device.

I propose an update to the Android readme that explains why the static linking approach recommended by NVidia doesn’t work.
2016-10-07 17:49:33 -07:00
Sam Lantinga
c55119c110 Converted README documentation to DOS text format 2016-10-07 17:46:58 -07:00
Philipp Wiesemann
35ad322b34 Fixed doxygen warnings about markdown formatting. 2016-02-24 21:05:19 +01:00
Philipp Wiesemann
178a30b438 Fixed markdown formatting in READMEs. 2014-08-15 23:39:14 +02:00
Philipp Wiesemann
bb534092c1 Updated README. 2014-08-15 23:18:57 +02:00
Philipp Wiesemann
b75c6e2eb2 Fixed doxygen warnings and markdown formatting. 2014-08-12 23:28:45 +02:00
Philipp Wiesemann
35ea23dbc4 Fixed doxygen warning and markdown formatting. 2014-08-11 23:13:20 +02:00
Sam Lantinga
91bbc7d9fa Moved documentation to docs, recreated a simple README.txt, fixed build
--HG--
rename : doc/README-SDL.md => README-SDL.txt
rename : doc/README-android.md => docs/README-android.md
rename : doc/README-cmake.md => docs/README-cmake.md
rename : doc/README-directfb.md => docs/README-directfb.md
rename : doc/README-dynapi.md => docs/README-dynapi.md
rename : doc/README-gesture.md => docs/README-gesture.md
rename : doc/README-hg.md => docs/README-hg.md
rename : doc/README-ios.md => docs/README-ios.md
rename : doc/README-linux.md => docs/README-linux.md
rename : doc/README-macosx.md => docs/README-macosx.md
rename : doc/README-nacl.md => docs/README-nacl.md
rename : doc/README-pandora.md => docs/README-pandora.md
rename : doc/README-platforms.md => docs/README-platforms.md
rename : doc/README-porting.md => docs/README-porting.md
rename : doc/README-psp.md => docs/README-psp.md
rename : doc/README-raspberrypi.md => docs/README-raspberrypi.md
rename : doc/README-touch.md => docs/README-touch.md
rename : doc/README-wince.md => docs/README-wince.md
rename : doc/README-windows.md => docs/README-windows.md
rename : doc/README-winrt.md => docs/README-winrt.md
rename : doc/README.md => docs/README.md
rename : doc/doxyfile => docs/doxyfile
2014-07-29 08:04:15 -07:00
Renamed from doc/README-android.md (Browse further)