Index: mojo/shell/android/shell_apk/src/org/chromium/mojo_shell_apk/MojoShellActivity.java |
diff --git a/mojo/shell/android/shell_apk/src/org/chromium/mojo_shell_apk/MojoShellActivity.java b/mojo/shell/android/shell_apk/src/org/chromium/mojo_shell_apk/MojoShellActivity.java |
index 7acf28350aa18a2a6611ec1e59d635b708c1ff73..4c117bf2a2422effde48236d6245e658557fc774 100644 |
--- a/mojo/shell/android/shell_apk/src/org/chromium/mojo_shell_apk/MojoShellActivity.java |
+++ b/mojo/shell/android/shell_apk/src/org/chromium/mojo_shell_apk/MojoShellActivity.java |
@@ -4,8 +4,9 @@ |
package org.chromium.mojo_shell_apk; |
-import android.os.Bundle; |
import android.app.Activity; |
+import android.content.Intent; |
+import android.os.Bundle; |
import android.util.Log; |
import org.chromium.mojo_shell_apk.LibraryLoader; |
@@ -30,7 +31,13 @@ public class MojoShellActivity extends Activity { |
finish(); |
return; |
} |
- MojoMain.start(this); |
- Log.i(TAG, "Mojo started."); |
+ |
+ String appUrl = getUrlFromIntent(getIntent()); |
+ MojoMain.start(this, appUrl); |
+ Log.i(TAG, "Mojo started: " + appUrl); |
+ } |
+ |
+ private static String getUrlFromIntent(Intent intent) { |
+ return intent != null ? intent.getDataString() : null; |
} |
} |