Commit graph

93 commits

Author SHA1 Message Date
UnknownShadow200
b0e1668fa8 Android: Fix immediately crashing on 2.2 2021-02-24 07:50:27 +11:00
UnknownShadow200
e537cc6c09 Android: Add many comments to MainActivity.java 2021-02-23 21:37:15 +11:00
UnknownShadow200
de71be97bd Android: Use device UUID for key so passwords are remembered 2021-02-22 21:56:46 +11:00
UnknownShadow200
4b398eb546 avoid 64 bit division in Updater_GetBuildTime on android 2021-01-30 23:42:55 +11:00
UnknownShadow200
33c1e4e791 Android: Use device theme for dialogs, also fixes not working on old android 2021-01-30 13:49:51 +11:00
UnknownShadow200
ebc4d9f753 Fix http requests always failing on old android 2021-01-30 12:53:36 +11:00
UnknownShadow200
5700988e49 Partially works on Android 2.3 now too 2021-01-30 10:20:23 +11:00
UnknownShadow200
980f98a06a Switch to loading OpenSLES dynamically 2021-01-29 23:04:41 +11:00
UnknownShadow200
0725c5122c Show message box if System.loadLibrary fails, drop minSdk version to 8 so I don't have to remember to keep readding that in 2021-01-29 20:46:16 +11:00
UnknownShadow200
12e675f754 Add buildbot script for android (still got a few things to fix though) 2021-01-25 23:42:31 +11:00
UnknownShadow200
85dfa73921 Android: Fix after you return to the game after having switched to something else, it had lost fullscreen (Thanks fizzwhiz) 2020-11-15 13:32:02 +11:00
UnknownShadow200
d053191cef Android: Move fullscreen variable out of Window.c and into java side activity 2020-11-15 13:12:17 +11:00
UnknownShadow200
27935713e8 Fix game outright crashing when a device conifugration change occurs (Thanks GuzzDoritos)
Although now you just get a blank window, so not exactly that much better
2020-11-10 21:59:56 +11:00
UnknownShadow200
3c640ce2ef Avoid restarting text input if possible, mostly fixes case where some devices would make letters default to uppercase every time you typed one in chat input (Thanks fizzwhiz) 2020-11-08 01:19:06 +11:00
UnknownShadow200
7150af4ab5 Android: Fullscreen should be sticky immersive (Thanks fizzwhiz)
This means that if you tap at top or bottom of screen to get navigation/status bars to reappear, they should reappear only for a few seconds and as a translucent overlay instead. Also avoid using HttpRequest_Free in favour of Mem_Free
2020-11-07 15:05:30 +11:00
UnknownShadow200
5c74425d79 Try to fix weird scaling resolutions on android devices
Also rename Display.DpiX/Y to ScaleX/Y to reflect what it actually is
2020-11-06 09:31:11 +11:00
UnknownShadow200
34e4bf3605 Android: Fix trying to backspace or insert numbers in numerical fields crashing the game on old android versions (Thanks 123DMWM) 2020-11-05 17:46:43 +11:00
UnknownShadow200
0d656869a4 Android: Disable the fullscreen editing view for soft input keyboard in landscape that showed up on some devices (Thanks fizzwhiz) 2020-11-02 19:27:17 +11:00
UnknownShadow200
302415fcb0 Android: Fix backspaces to work in password input too, fixes #745 (Thanks Fam0r and AndrewPH) 2020-11-01 09:47:03 +11:00
UnknownShadow200
4a92a6d271 Android: Get numbers to work properly in emulator at least. Pending testing on actual devices 2020-11-01 09:32:36 +11:00
UnknownShadow200
53e34eec26 Android: Don't prevent physical volume buttons from working (Thanks 123DMWM) 2020-10-31 17:02:42 +11:00
UnknownShadow200
8b3246b67b Android: Starting working on OpenSL ES backend for audio 2020-10-23 10:45:33 +11:00
UnknownShadow200
856c7a2f2a Bump android SDK version back up to 26 to avoid 'this app was built for an older version of android and doesn't include the latest privacy protections' message when installing
I also set StrictMode.disableDeathOnFileUriExposure using some disgusting reflection so screenshots can continue to use file:// urls instead of content:// urls
2020-10-22 23:54:50 +11:00
UnknownShadow200
174bbc6363 Change the android package name to avoid conflicting with a certain other android application 2020-10-21 23:48:10 +11:00
UnknownShadow200
53af396dd9 Android: Fix if you leave input field with text in it then select it again, you can't backspace the text anymore 2020-10-19 23:32:14 +11:00
UnknownShadow200
e93fa93042 Android: Fix backspace in numeric keyboard randomly crashing 2020-10-19 21:24:45 +11:00
UnknownShadow200
f6bfb86fa5 Take two at improving android keyboard
Still has problems of a) always adding . after space b) backspacing in numeric keyboard crashing
2020-10-18 19:06:26 +11:00
UnknownShadow200
87926a82f4 simplify changing surfaces code for android 2020-10-14 19:38:32 +11:00
UnknownShadow200
a15c65512c Change android icon from default green droid to classicube one 2020-10-14 00:36:33 +11:00
UnknownShadow200
4002a8d074 for android values, round DPI values to two decimal places
Some older devices return values like 0.996 which causes 1 pixel wide lines to wrongly round downwards to 0 etc
2020-10-14 00:10:43 +11:00
UnknownShadow200
6817f13235 WIP on making fullscreen button work for android client 2020-10-12 17:38:23 +11:00
UnknownShadow200
982d0bb925 Reduce target SDK version from 26 to 23 so I can use file:// uris when sharing screenshots to other applications. >= 24 throws a android.os.FileUriExposedException when I try that.
If this causes problems in the future, I made a properly working ContentProvider implementation for screenshots in AndroidContentProvider branch. I tested and it does seem to work, although it's terribly written code and probably breaks somehow. Definitely not worth the two hours I wasted on that and FileProvider.
2020-09-27 22:56:09 +10:00
UnknownShadow200
a466890ac3 Fix 'check for updates' showing 'failed' and add message in updates menu telling user they need to redownload and reinstall apk, fixes #714 2020-09-27 20:11:09 +10:00
UnknownShadow200
351c8d570c remove unused appcompat/constraintlayout dependencies for android version (debug apk 4.4 --> 2.9 MB, release 3.6 --> 2.3 MB)
Also reduce
minimum android version from 4.0 to 3.2
2020-09-27 18:42:49 +10:00
UnknownShadow200
3d220ab7d8 it's probably bad idea to exclude android version from backups 2020-09-27 18:14:00 +10:00
UnknownShadow200
2cdd20b4ae Add broken support for auto sharing screenshots taken on android 2020-09-27 16:03:07 +10:00
UnknownShadow200
d1542c4db8 Show the time APK was last updated for build time in updates menu for android version 2020-08-30 12:39:24 +10:00
UnknownShadow200
386ce44cc8 Fix android makefile to compile, add readme for doc/misc folder 2020-07-27 22:09:37 +10:00
UnknownShadow200
2a1837cfc7 fix android build not compiling 2020-04-17 22:04:38 +10:00
UnknownShadow200
3509ae6a9a Remove unused freetype CID code 2020-03-23 22:06:30 +11:00
UnknownShadow200
bf302610e4 add missing gradle files 2020-03-05 08:59:05 +11:00
UnknownShadow200
b23bd94cf3 consistent whitespace 2019-11-08 23:34:02 +11:00
UnknownShadow200
f906f63ed7 open source missing java bits of android build I guess 2019-11-08 23:24:34 +11:00