diff --git a/shell/android/src/com/reicast/emulator/GL2JNIActivity.java b/shell/android/src/com/reicast/emulator/GL2JNIActivity.java index caed54059..af0dfc6a0 100644 --- a/shell/android/src/com/reicast/emulator/GL2JNIActivity.java +++ b/shell/android/src/com/reicast/emulator/GL2JNIActivity.java @@ -199,9 +199,8 @@ public class GL2JNIActivity extends Activity { config.loadConfigurationPrefs(); // When viewing a resource, pass its URI to the native code for opening - Intent intent = getIntent(); - if (intent.getAction().equals("com.reciast.LAUNCH_ROM")) - fileName = Uri.decode(intent.getData().toString()); + if (getIntent().getAction().equals("com.reciast.EMULATOR")) + fileName = Uri.decode(getIntent().getData().toString()); // Create the actual GLES view mView = new GL2JNIView(getApplication(), config, fileName, false, diff --git a/shell/android/src/com/reicast/emulator/GL2JNINative.java b/shell/android/src/com/reicast/emulator/GL2JNINative.java index 256acb609..b0994726c 100644 --- a/shell/android/src/com/reicast/emulator/GL2JNINative.java +++ b/shell/android/src/com/reicast/emulator/GL2JNINative.java @@ -221,9 +221,8 @@ public class GL2JNINative extends NativeActivity { config.loadConfigurationPrefs(); // When viewing a resource, pass its URI to the native code for opening - Intent intent = getIntent(); - if (intent.getAction().equals("com.reciast.LAUNCH_ROM")) - fileName = Uri.decode(intent.getData().toString()); + if (getIntent().getAction().equals("com.reciast.EMULATOR")) + fileName = Uri.decode(getIntent().getData().toString()); // Create the actual GLES view mView = new GL2JNIView(getApplication(), config, fileName, false,