Cache Android activity launch intent dropped by Kivy and retrieve for handling after UI init

This commit is contained in:
Mark Qvist 2025-11-09 11:36:45 +01:00
parent 5d7a83a39c
commit 09400ec863
2 changed files with 95 additions and 69 deletions

View file

@ -50,6 +50,8 @@ public class PythonActivity extends SDLActivity {
private Bundle mMetaData = null;
private PowerManager.WakeLock mWakeLock = null;
public Intent startIntent = null;
public String getAppRoot() {
String app_root = getFilesDir().getAbsolutePath() + "/app";
return app_root;
@ -57,6 +59,9 @@ public class PythonActivity extends SDLActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
try { this.startIntent = getIntent(); }
catch { Log.e(TAG, "Failed to get pending intent on activity create"); }
Log.v(TAG, "PythonActivity onCreate running");
resourceManager = new ResourceManager(this);