I have an activity that does OAuth authentication by intercepting the redirect url once it show up in the webview. However, the onPageFinished function is somehow called twi
Since onPageFinished is being called more than once, you can simply check if the method is already called before executing anything further.
@Override public void onPageFinished(WebView view, String url) { if (loaded) { return; } // Do something... loaded = true; }