I got to a dead loop in Android webview application with backkey while dealing with redirect links.
For example, when my webview started, it goes to link0.
In l
webview.setWebViewClient(new WebViewClient(){
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
Log.i(tag, "url = " + url);
// view.loadUrl(url);
// return super.shouldOverrideUrlLoading(view, url);
return false;
}
});
look!!!! the important, shouldOverrideUrlLoading must return false
in shouldOverrideUrlLoading you can't invoke view.loadUrl.