Getter for the webview

This commit is contained in:
Joe Bowser 2009-11-25 13:27:57 -08:00
parent c16054637a
commit 05e1343cb0

View File

@ -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;
}
} }