diff --git a/app/src/normal/java/org/love2d/android/MainActivity.java b/app/src/normal/java/org/love2d/android/MainActivity.java
index 6da05ded..d0fb033f 100644
--- a/app/src/normal/java/org/love2d/android/MainActivity.java
+++ b/app/src/normal/java/org/love2d/android/MainActivity.java
@@ -1,8 +1,10 @@
package org.love2d.android;
+import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
+import android.os.Build;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
@@ -32,6 +34,9 @@ public class MainActivity extends AppCompatActivity {
Intent intent = new Intent(this, GameActivity.class);
startActivity(intent);
return true;
+ } else if (itemId == R.id.optionItem2) {
+ getGameFolderDialog().show();
+ return true;
} else if (itemId == R.id.optionItem3) {
Intent intent = new Intent(this, AboutActivity.class);
startActivity(intent);
@@ -40,4 +45,21 @@ public class MainActivity extends AppCompatActivity {
return super.onOptionsItemSelected(item);
}
}
+
+ private AlertDialog getGameFolderDialog() {
+ AlertDialog.Builder builder = new AlertDialog.Builder(this)
+ .setTitle(getString(R.string.game_folder))
+ .setPositiveButton(R.string.ok, (dialog1, which) -> { });
+ StringBuilder message = new StringBuilder()
+ .append(getString(R.string.game_folder_location, getPackageName()))
+ .append("\n\n");
+
+ if (Build.VERSION.SDK_INT >= 30) {
+ message.append(getString(R.string.game_folder_inaccessible));
+ } else {
+ message.append(getString(R.string.game_folder_accessible));
+ }
+
+ return builder.setMessage(message.toString()).create();
+ }
}
diff --git a/app/src/normal/res/values/strings.xml b/app/src/normal/res/values/strings.xml
index e71c4dff..a5a126d9 100644
--- a/app/src/normal/res/values/strings.xml
+++ b/app/src/normal/res/values/strings.xml
@@ -8,4 +8,8 @@
Launch No-Game
Game Folder
About
+ OK
+ The game folder is located in your internal storage at Android/data/%1$s/files/games.
+ The folder should be accessible with your favorite file manager.
+ Unfortunately the folder is only accessible through MTP in PC.