From 358ea7b1a90f326b8d059cd7bdf943819daf4714 Mon Sep 17 00:00:00 2001 From: kichikuou Date: Mon, 30 Dec 2019 16:14:55 +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/system3/GameActivity.java | 35 +++++++ .../kichikuou/system3/LauncherActivity.java | 91 +++++++++++++++++++ android/app/src/main/res/values/strings.xml | 2 +- src/sdlmain.cpp | 7 ++ 6 files changed, 146 insertions(+), 9 deletions(-) create mode 100644 android/app/src/main/java/io/github/kichikuou/system3/GameActivity.java create mode 100644 android/app/src/main/java/io/github/kichikuou/system3/LauncherActivity.java diff --git a/android/app/build.gradle b/android/app/build.gradle index e043816..f701caf 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.system3" } minSdkVersion 16 targetSdkVersion 26 diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index bcd2ede..c7c334e 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 @@ - - + + + + + + + - - - - +