mirror of
https://github.com/markqvist/Sideband.git
synced 2026-11-20 06:56:22 -05:00
Cache Android activity launch intent dropped by Kivy and retrieve for handling after UI init
This commit is contained in:
parent
5d7a83a39c
commit
09400ec863
2 changed files with 95 additions and 69 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue