Summary check for intent data to support specific action

This commit is contained in:
TwistedUmbrella 2014-04-07 04:47:55 -04:00
parent 1e80306577
commit 91800aec5e
2 changed files with 4 additions and 6 deletions

View File

@ -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,

View File

@ -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,