You have to set up a webViewClient for your webView.
Sample:
this.mWebView.setWebViewClient(new WebViewClient(){
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url){
view.loadUrl(url);
return true;
}
});
More Related Contents:
- How to go back to previous page if back button is pressed in WebView?
- WebView and HTML5
- Playing HTML5 video on fullscreen in android webview
- YouTube Video not playing in WebView – Android
- Memory leak in WebView
- Android Webview – Webpage should fit the device screen
- Android webview & localStorage
- How to load external webpage in WebView
- WebView: how to avoid security alert from Google Play upon implementation of onReceivedSslError
- Android WebView “tel:” links show web page not found
- Is `shouldOverrideUrlLoading` really deprecated? What can I use instead?
- Android – extracting cookies after login in webview
- How does evaluateJavascript work?
- How to change the FontSize in an Android WebView?
- Add a Progress Bar in WebView
- handling links in a webview
- How would I display one view as an overlay of another?
- Display a part of the webpage on the webview android
- How to prevent a scrollview from scrolling to a webview after data is loaded?
- Android WebView VS Phone Browser
- Kitkat kills: Not allowed to load local resource: file:///android_asset/webkit/android-weberror.png
- Support for other protocols in Android webview
- How to get loaded web page title in Android WebView?
- Android WebView JellyBean -> Should not happen: no rect-based-test nodes found
- shouldOverrideUrlLoading in WebView for Android not running
- Two way sync for cookies between HttpURLConnection (java.net.CookieManager) and WebView (android.webkit.CookieManager)
- Android, webview user agent vs browser user agent
- How to enable deep-linking in WebView on Android app?
- Android WebView TimeOut
- How to Hide ActionBar/Toolbar While Scrolling Down in Webview