Update Android java code (#7820)
authorMaksim <MoNTE48@mail.ua>
Sun, 2 Dec 2018 23:39:35 +0000 (00:39 +0100)
committerLoic Blot <loic.blot@unix-experience.fr>
Sat, 22 Dec 2018 16:25:38 +0000 (17:25 +0100)
commit9d64805ec14613c34abce32a855d3c07c5b966ec
treeaea03eda2d5d36fdeb406288b62c2924f9ba6d72
parentce4497224f6239a8e6c4aadfa7f593520602fa03
Update Android java code (#7820)

Targets SDK 26 as required by the playstore.
Fixes screen auto-rotation closing game.
Hides on-screen navigation bar if present.

Update gradlew.
Fix display aspect on 18+/:9 displays (like a Samsung Galaxy S9).
Remove small app icons, not required.
Fix xml in unpacking activity.
Support Android permission: On Android 6.0+ you need to manually give write
permission (as required by google).
Background during unpacking (just a demo for now).
Material Design: no more Android 2 interface.
Immersive mode (Android 4.4+ - hide NavBar for fullscreen mode).
23 files changed:
.gitignore
build/android/build.gradle
build/android/gradle/wrapper/gradle-wrapper.jar
build/android/gradle/wrapper/gradle-wrapper.properties
build/android/gradlew
build/android/gradlew.bat
build/android/src/debug/AndroidManifest.xml
build/android/src/main/AndroidManifest.xml
build/android/src/main/java/net.minetest.minetest/MainActivity.java [new file with mode: 0644]
build/android/src/main/java/net.minetest.minetest/MinetestAssetCopy.java
build/android/src/main/java/net.minetest.minetest/MinetestTextEntry.java
build/android/src/main/java/net.minetest.minetest/MtNativeActivity.java
build/android/src/main/res/drawable-hdpi/irr_icon.png [deleted file]
build/android/src/main/res/drawable-ldpi/irr_icon.png [deleted file]
build/android/src/main/res/drawable-mdpi/irr_icon.png [deleted file]
build/android/src/main/res/drawable-xhdpi/irr_icon.png [deleted file]
build/android/src/main/res/drawable/background.png [new file with mode: 0644]
build/android/src/main/res/drawable/bg.xml [new file with mode: 0644]
build/android/src/main/res/layout/assetcopy.xml
build/android/src/main/res/mipmap/ic_launcher.png [new file with mode: 0644]
build/android/src/main/res/values-v21/styles.xml [new file with mode: 0644]
build/android/src/main/res/values/strings.xml
build/android/src/main/res/values/styles.xml