mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-26 12:03:28 +08:00
Load url into DroidGap if it was passed in to intent.
This commit is contained in:
parent
b66535a17d
commit
0b3e27b3fa
@ -110,6 +110,14 @@ public class DroidGap extends PhonegapActivity {
|
|||||||
initWebView();
|
initWebView();
|
||||||
root.addView(this.appView);
|
root.addView(this.appView);
|
||||||
setContentView(root);
|
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());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user