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

Popular posts from this blog

Working with Android Hierarchy Viewer

Android: Standalone login with SQLiteOpenHelper