Commit Graph
413 Commits
Author SHA1 Message Date
antoniou 30b8842885 ANDROID: Use custom handler for long key press detection
To avoid possible mem leaks (see "This Handler Class Should Be Static Or Leaks Might Occur” warning

Also a few optimizations based on recommendations from the Android Studio error highlighting/fix suggestions (F2)
2020-09-14 16:16:46 +03:00
antoniou bd95672815 ANDROID: get version info (wip) and use androidx for annotations
Also androidx is replacing the Android Support library so it's best to use this one

According to https://developer.android.com/jetpack/androidx
AndroidX is a major improvement to the original Android Support Library, which is no longer maintained. androidx packages fully replace the Support Library by providing feature parity and new libraries.
AndroidX replaces the original support library APIs with packages in the androidx namespace. Only the package and Maven artifact names changed; class, method, and field names did not change.
2020-09-14 09:32:37 +03:00
Cameron Cawley c502fd2162 BACKENDS: Remove unused functions 2020-08-31 21:37:41 +01:00
aryanrawlani28 29b6274e67 BACKENDS: CLIPBOARD: Improve usage for SDL & Android.
- Fix possible issue for setting text inside clipboard for SDL.
- Always return a decoded string when from UTF-8 in Android when fetch clipboard.
2020-08-30 14:43:41 +02:00
aryanrawlani28 1950e38154 ANDROID: Support OSD Messages for U32. 2020-08-30 14:43:41 +02:00
aryanrawlani28 a9c5e930f0 ANDROID: Make clipboards work with U32Strings. 2020-08-30 14:43:41 +02:00
Cameron Cawley 2cdbc27ef8 ANDROID: Fix creating the default event manager 2020-08-27 23:05:45 +01:00
Cameron Cawley 7745ffdac1 BACKENDS: Simplify EventsBaseBackend 2020-08-24 14:22:35 +02:00
Cameron Cawley 75852a786a BACKENDS: Split ModularBackend into two separate classes 2020-08-24 14:22:35 +02:00
Cameron Cawley cf068bcc08 ALL: Remove direct use of OSystem::createMutex() 2020-08-21 09:39:00 +02:00
antoniou 56951518f5 ANDROID: Restore Immersive Fullscreen after keyboard hide
This in some older devices (eg. Android 7.2.2) had issues before this fix
2020-08-11 14:11:53 +03:00
antoniou 6352a0c212 ANDROID: Improve on Immersive full screen
Sample is taken from android developers, takes into account focus change

The system bars should now be hidden when resuming back to the ScummVM app
https://developer.android.com/training/system-ui/immersive.html#java
2020-08-11 11:21:53 +03:00
antoniou b92a474ea1 ANDROID: Enable Immersive Sticky mode
This hides the status and navigation (system UI) bars

The user has to swipe at the edge of the screen (top and right respectively) to show the system status and navigation bars
2020-08-11 10:36:26 +03:00
antoniou 4685d7d2e6 ANDROID: Don't reset the autosave period to 0 upon launch 2020-07-25 22:42:43 +03:00
antoniou79 617e56f165 ANDROID: increase jvm memory to 4096m 2020-07-24 06:34:11 +00:00
Cameron Cawley b41c5f1952 ANDROID: Implement OSystem::convertEncoding() 2020-07-18 15:14:01 +03:00
Cameron Cawley 0efce44e81 ANDROID: Clean up the text conversion code 2020-07-18 15:14:01 +03:00
Mataniko f2697269fa BUILD: Support building Android on OSX 2020-07-06 17:39:45 -04:00
Thanasis Antoniou a405524123 ANDROID: Use ApplicationContext for WIFI service look up
Android Studio warns for memory leaks otherwise on devices < Android N
2020-05-24 20:30:21 +03:00
Eugene Sandulenko 2f9c28a699 ANDROID: Another blind attempt to fix compilation. Sigh 2020-05-11 10:11:08 +02:00
Eugene Sandulenko a211e9db2b ANDROID: Instantiate static class variable 2020-05-11 10:06:58 +02:00
Eugene Sandulenko b11a2aea65 ANDROID: Fix reference 2020-05-11 08:28:28 +02:00
Eugene Sandulenko fc54286705 ANDROID: Fix compilation 2020-05-11 07:41:21 +02:00
Eugene Sandulenko 1a64d19de7 ANDROID: Fix compilation 2020-05-11 01:51:42 +02:00
Henrik "Henke37" Andersson ecd23a7e20 Android: Use PauseToken 2020-05-11 01:35:03 +02:00
Cameron Cawley 27e8467b28 ANDROID: Add support for additional mouse buttons 2020-04-07 13:55:30 +03:00
Le Philousophe d3c72b4c97 ANDROID: Update files in build directory when source changed 2020-04-07 11:36:02 +03:00
Cameron Cawley b8e1aa66e5 ANDROID: Ignore input from the volume buttons 2020-04-01 21:10:00 +01:00
Peter Kohaut 470a1d3586 ANDROID: Switch to Gradle
Updated NDK to r21 (LTS)
Switch target Android to 29 as it is required by Google Play Store
Switch minimum Android to 16 (4.1) as it is the lowest supported version by NDK
Removed MIPS and armeabi as they are no longer supported
Renamed Android build names into official ones
2020-03-27 22:45:25 +01:00
Thanasis Antoniou bd1e2b8b87 ANDROID: Notes on superseded swap_menu_and_back_buttons conf key 2020-02-27 08:23:09 +02:00
Cameron Cawley fffb25a47a ANDROID: Add basic keymapper support (#2026)
* ANDROID: Remove hard-coded key mappings

* ANDROID: Add default key bindings
2020-02-26 10:23:47 +02:00
Thanasis Antoniou 3c9741a4c3 ANDROID: Early fix for Android 9+ crash and config/save path issues 2020-01-31 17:23:15 +02:00
Cameron Cawley 9fc24522d7 BACKENDS: Add more keycodes 2020-01-21 03:28:22 +02:00
Cameron Cawley c9824ad206 ANDROID: Improve handling of system keys
- Unrecognised system keys are treated as regular keys.
- Key down events are always sent when pressing the Menu or Back buttons.
2020-01-20 21:36:05 +00:00
Cameron Cawley 5950644054 ANDROID: Check the KeyEvent source instead of using getRmbGuard() 2020-01-20 16:19:49 +00:00
Cameron Cawley 24b9e9f390 ANDROID: Remove old and broken keymapper code
This isn't needed after commit 665e472.
2020-01-20 13:54:41 +00:00
Thanasis Antoniou 9753816315 ANDROID: Update starting version code for next release apks to 45 2020-01-19 01:51:12 +02:00
Cameron Cawley 97c3ac5c2c ANDROID: Hide the system mouse cursor on Android N 2020-01-11 18:03:02 +02:00
Thanasis Antoniou 0357293897 ANDROID: Fix crash due to adding '.' folder in SearchManager 2019-12-16 22:59:10 +02:00
Thanasis Antoniou 97b4ee93f1 ANDROID: Fix bad message id for long press back btn 2019-12-14 15:46:23 +02:00
Thanasis Antoniou d105041d80 ANDROID: Long press for back button has an alternate (menu button) function 2019-12-14 15:04:43 +02:00
Cameron Cawley d584df6a0e ANDROID: Improve keyboard support (#1857) 2019-12-14 14:48:47 +02:00
Cameron Cawley 2048c9cc78 AUDIO: Remove unused parameter from the MixerImpl constructor 2019-11-30 17:47:34 +02:00
Thanasis Antoniou b5f9d70c44 ANDROID: Add docs and port dist files to Assets 2019-11-25 13:53:48 +02:00
Thanasis Antoniou 8eb185c0d9 ANDROID: Remove duplicate header inclusion in android.h 2019-11-12 20:05:35 +02:00
Thanasis Antoniou 3e9504856f ANDROID: Override UTF-8 compliant definition of vsn_printf
This sets Android as a non-standard port in configure in order to override the definition for vsn_printf

The vsn_printf implementation is taken from https://github.com/weiss/c99-snprintf
2019-11-12 20:01:43 +02:00
Thanasis Antoniou b8c26508c9 ANDROID: Fix OSD message display crash or fail
For translated message text. Android expected UTF-8 format for the message

Also makeToast for OSD needed to be run from the main UI thread
2019-11-08 16:59:52 +02:00
Cameron Cawley 177d709909 OPENGL: Implement high DPI support on Android (#1895)
* OPENGL: Implement high DPI support on Android

* PSP2: Fix build
2019-11-01 13:39:46 +02:00
Cameron Cawley 38beac8d95 ANDROID: Simplify handling of menu/back button events 2019-10-23 07:41:31 +03:00
Cameron Cawley 94a53ccb0f ANDROID: Add swap menu and back buttons option 2019-10-23 07:41:31 +03:00