From f70f7875e2a2e49f80470832ae97e73f171d6460 Mon Sep 17 00:00:00 2001 From: Maksim Date: Mon, 3 Dec 2018 00:39:35 +0100 Subject: 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). --- build/android/src/main/AndroidManifest.xml | 67 ++++++++++++++++++++---------- 1 file changed, 46 insertions(+), 21 deletions(-) (limited to 'build/android/src/main/AndroidManifest.xml') diff --git a/build/android/src/main/AndroidManifest.xml b/build/android/src/main/AndroidManifest.xml index df218fb33..7f61cda38 100644 --- a/build/android/src/main/AndroidManifest.xml +++ b/build/android/src/main/AndroidManifest.xml @@ -1,34 +1,59 @@ - + package="net.minetest.minetest" + android:installLocation="auto"> + + + - - + + + + - + android:launchMode="singleTask" + android:screenOrientation="sensorLandscape" + android:theme="@style/AppTheme"> - - - - + + + + + + + -- cgit v1.2.3