


To have the WebView load the URL (rather than the default browser), you must subclass and override the ShouldOverriderUrlLoading. I think the error is in the shouldOverrideUrlLoading method. At the top of the MainActivity class, declare a WebView object: WebView webview When the WebView is asked to load a URL, it will by default delegate the request to the default browser.

If ((ke圜ode = KeyEvent.KEYCODE_BACK) & mWebView.canGoBack())
Return boolean onKeyDown(int ke圜ode, KeyEvent event) im building an app that should allow users to click a link to a pdf document in a webview and display it in the view. Android Studio webView PDF is showing