Commit graph

385 commits

Author SHA1 Message Date
antoniou
583c04ed15 ANDROID: Replace deprecated methods and fix some Code analyze warnings 2020-10-10 15:18:54 +03:00
Cameron Cawley
f59091c1e4 ANDROID: Use the input enums from the system headers 2020-10-09 07:57:08 +03:00
antoniou
e25ac0bc55 ANDROID: Correctly init config keys and reflect values on GUI
Also comments added about how this process works. Fixes bug #11743
2020-10-07 15:26:31 +03:00
antoniou
01c622b807 ANDROID: Add external app path if available to search path 2020-10-04 20:28:27 +03:00
antoniou
5613c50fb3 ANDROID: Set AC_BACK to be the default map for Skip action
If Skip is not otherwise mapped by the game engine explicitly
2020-10-03 12:26:38 +03:00
antoniou
319149343f ANDROID: Reduce more Lint warnings
Unused resources, mem leak for event handler, overried View's performClick for accessibility
2020-10-02 19:50:30 +03:00
antoniou
50eb038312 ANDROID: Comment about related bug report for transient config options 2020-10-02 12:42:06 +03:00
antoniou
bf54ea041b ANDROID: Fix for buggy backspace behavior in TYPE_NULL inputType
Code taken from https://stackoverflow.com/a/19980975
2020-10-01 00:06:20 +03:00
antoniou
303d4681f0 ANDROID: Send keys to app as they are typed
Fixes issue with bad system keyboard input to in-game fields
2020-10-01 00:06:20 +03:00
antoniou
138295f617 ANDROID: Minor optimization in clause evaluation for bugfix for 2.2.1beta1 2020-09-30 20:56:39 +03:00
antoniou
7e08306c66 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:03:03 +03:00
antoniou
4ea7455e09 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:10:56 +03:00
antoniou
aa5a490bc7 ANDROID: Reduce Lint warnings 2020-09-28 17:55:04 +03:00
antoniou
f6d1ab66b7 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-26 22:03:20 +03:00
antoniou
8a87db94de KEYMAPPER: remap timeout (ms) can be set from config
Config key is "remap_timeout_delay_ms", min value is 3000
2020-09-26 17:00:57 +03:00
antoniou
75826f80fc ANDROID: Comment out the logfile code
Since currently the logFile stuff are specific to SDL_BACKED
2020-09-24 10:14:02 +03:00
antoniou
c45dfd4a2f ANDROID: Migrate old save files
More testing pending
2020-09-24 01:50:45 +03:00
antoniou
9e35ce0e52 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-18 15:12:16 +03:00
antoniou
34b6a89967 ANDROID: Remove unnecessary check for isFile in a sideUpgrade 2020-09-17 23:56:32 +03:00
antoniou
30b7c882e8 ANDROID: Copy asset files in internal app folder 2020-09-17 23:25:23 +03:00
antoniou
6906bba959 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-16 20:34:49 +03:00
antoniou
e751b30691 ANDROID: Upgrade to 2.3 version re-using any old configuration file 2020-09-16 15:25:53 +03:00
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