mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-31 17:32:51 +08:00
Getter for the webview
This commit is contained in:
parent
c16054637a
commit
05e1343cb0
@ -45,7 +45,7 @@ import android.widget.LinearLayout;
|
|||||||
public class DroidGap extends Activity {
|
public class DroidGap extends Activity {
|
||||||
|
|
||||||
private static final String LOG_TAG = "DroidGap";
|
private static final String LOG_TAG = "DroidGap";
|
||||||
private WebView appView;
|
protected WebView appView;
|
||||||
private LinearLayout root;
|
private LinearLayout root;
|
||||||
|
|
||||||
private String uri;
|
private String uri;
|
||||||
@ -126,8 +126,8 @@ public class DroidGap extends Activity {
|
|||||||
appView.addJavascriptInterface(netMan, "NetworkManager");
|
appView.addJavascriptInterface(netMan, "NetworkManager");
|
||||||
appView.addJavascriptInterface(mCompass, "CompassHook");
|
appView.addJavascriptInterface(mCompass, "CompassHook");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public void loadUrl(String url)
|
public void loadUrl(String url)
|
||||||
{
|
{
|
||||||
appView.loadUrl(url);
|
appView.loadUrl(url);
|
||||||
@ -184,5 +184,10 @@ public class DroidGap extends Activity {
|
|||||||
launcher.failPicture("Did not complete!");
|
launcher.failPicture("Did not complete!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public WebView getView()
|
||||||
|
{
|
||||||
|
return this.WebView;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user