Make URL open in the same Activity


I'm creating a WebView for Android. When I load the App, the imported page works fine, but when I click on some link of the page, that same link opens in another browser.

asked by anonymous 18.08.2014 / 15:50

1 answer


Set a WebViewClient in your WebView to handle URLs:

wv.setWebViewClient(new WebViewClient() {
    public boolean shouldOverrideUrlLoading(WebView view, String url) {
        return false;
18.08.2014 / 16:39