你好我都很新phonegap
..我想webview進入我的應用程序如何添加此?我創建了相同的應用程序。使用android,但它如何使用PHONEGAP
devleope?android phonegap webview
private WebView mWebView;
//bla bla bla..
@Override
public void onCreate(Bundle savedInstanceState) {
mWebView = (WebView) findViewById(R.id.webviewHelp);
WebSettings webSettings = mWebView.getSettings();
mWebView.getSettings().setJavaScriptEnabled(true);
mWebView.addJavascriptInterface(new MyjavascriptInterface(), "HTMLOUT");
mWebView.loadUrl(strURL);
mWebView.setWebViewClient(new HelloWebViewClient());
}
public class MyjavascriptInterface {
public void showHTML(String html)
{
bla bla bla...
}
}
public class HelloWebViewClient extends WebViewClient {
@Override
public void onPageFinished(WebView view, String url) {
bla bla bla...
}
}
}
在此先感謝:Pragna