Android: WebView back navigation
webview = (WebView) rootView.findViewById(R.id.testWebView); webview.setWebViewClient(new MyBrowser());
private class MyBrowser extends WebViewClient { @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { view.loadUrl(url); return true; }
}
Comments
Post a Comment