Commit graph

372 commits

Author SHA1 Message Date
antoniou
685edfb24e ANDROID: Minor optimization in clause evaluation for bugfix for 2.2.1beta1 2020-09-30 20:58:05 +03:00
antoniou
fb266e6bcd ANDROID: Fix bug in 2.2.1 beta ignoring some config locations
This is a bug fix specific for 2.2.1 beta1

If an old config is found in the extra locations, it will be reused and replace the existing config. Also in that case, the extra locations will be scanned for saved games to copy to our default save location.
2020-09-30 20:07:30 +03:00
antoniou
de14e6764c ANDROID: Splash screen and additional locations to search for config and saves
The splash screen is an addition that was "forced" by the need to allow for permission granted to access external physical storage
2020-09-29 22:16:16 +03:00
antoniou
39c3c1466f ANDROID: Reduce Lint warnings 2020-09-29 22:16:05 +03:00
antoniou
fb6ab66cba ANDROID: Add comments and code to reinforce hiding of system cursor
For the case when an external mouse is connected to the device

The code still only fixes the issue for devices runnng Android 7.0 or newer
2020-09-27 21:07:41 +03:00
antoniou
0aa2c85331 KEYMAPPER: remap timeout (ms) can be set from config
Config key is "remap_timeout_delay_ms", min value is 3000
2020-09-27 21:07:28 +03:00
antoniou
b15b394f0c ANDROID: Comment out the logfile code
Since currently the logFile stuff are specific to SDL_BACKED
2020-09-24 14:18:09 +03:00
antoniou
d95066e04d ANDROID: Migrate old save files
More testing pending
2020-09-24 14:18:09 +03:00
antoniou
495420a027 ANDROID: Add internal app path to SearchSet
Also have it with higher priority than the Android's assets structure which is too slow

Fixes a bug whereby a large font.dat file was very slow to be accessed during launch (for the modern themes), due to it being accessed from the Assets rather than the file system
2020-09-24 14:18:09 +03:00
antoniou
aeeffa1e48 ANDROID: Remove unnecessary check for isFile in a sideUpgrade 2020-09-24 14:18:09 +03:00
antoniou
3edb4e3e58 ANDROID: Copy asset files in internal app folder 2020-09-24 14:18:09 +03:00
antoniou
7fe7f0c226 ANDROID: Revert chnage for long press AC_BACK handler
Huawei Android 9 seemed to not be working ok (or at all) with the change
2020-09-24 14:18:09 +03:00
antoniou
7c4f9df1a5 ANDROID: Upgrade to 2.3 version re-using any old configuration file 2020-09-24 14:18:08 +03:00
antoniou
d268cf28b9 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-24 14:18:08 +03:00
antoniou
b4081e12b0 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-24 14:18:08 +03: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