2017-06-22 5 views

Antwort

0

Erstellen Sie einen WebViewClient und überschreiben Sie die Methode shouldOverrideUrlLoading.

webview.setWebViewClient(new WebViewClient() { 
    public boolean shouldOverrideUrlLoading(WebView view, String url){ 
     // do your handling codes here, which url is the requested url 
     // probably you need to open that url rather than redirect: 
     view.loadUrl(url); 
     return false; // then it is not handled by default action 
    } 
});