From 0b3e27b3fa9e1b9deddbffa4074732cb63f0e7c6 Mon Sep 17 00:00:00 2001 From: Bryce Curtis Date: Fri, 5 Nov 2010 14:50:48 -0500 Subject: [PATCH] Load url into DroidGap if it was passed in to intent. --- framework/src/com/phonegap/DroidGap.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/framework/src/com/phonegap/DroidGap.java b/framework/src/com/phonegap/DroidGap.java index 62b416a5..98e41240 100755 --- a/framework/src/com/phonegap/DroidGap.java +++ b/framework/src/com/phonegap/DroidGap.java @@ -110,6 +110,14 @@ public class DroidGap extends PhonegapActivity { initWebView(); root.addView(this.appView); setContentView(root); + + // If URL was passed in to intent, then load it + Uri uri = this.getIntent().getData(); + if (uri != null) { + System.out.println("Loading initial URI="+uri.toString()); + this.loadUrl(uri.toString()); + } + } /**