From b2c1ba524779ab51658181be25e012361b74a3d9 Mon Sep 17 00:00:00 2001 From: kichikuou Date: Mon, 30 Dec 2019 15:38:42 +0900 Subject: [PATCH] Android: Add simple launcher This adds a minimal launcher activity for the android app, which does the followings: - Opens a file chooser to let user select a zip file - Extracts the zip into the app's internal storage - Launches the SDL activity --- android/app/build.gradle | 2 +- android/app/src/main/AndroidManifest.xml | 18 ++-- .../kichikuou/xsystem35/GameActivity.java | 35 +++++++ .../kichikuou/xsystem35/LauncherActivity.java | 91 +++++++++++++++++++ android/app/src/main/res/values/strings.xml | 2 +- src/xsystem35.c | 6 ++ 6 files changed, 145 insertions(+), 9 deletions(-) create mode 100644 android/app/src/main/java/io/github/kichikuou/xsystem35/GameActivity.java create mode 100644 android/app/src/main/java/io/github/kichikuou/xsystem35/LauncherActivity.java diff --git a/android/app/build.gradle b/android/app/build.gradle index 0623ba6..40a1c01 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -11,7 +11,7 @@ android { compileSdkVersion 26 defaultConfig { if (buildAsApplication) { - applicationId "org.libsdl.app" + applicationId "io.github.kichikuou.xsystem35" } minSdkVersion 16 targetSdkVersion 26 diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index bcd2ede..1f6b6cf 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -3,7 +3,7 @@ com.gamemaker.game --> @@ -51,17 +51,21 @@ - - + + + + + + + - - - - +