Shouldoverrideurlloading Gets Called Only For Some Webpages
I'm using the method shouldOverrideUrlLoading for an app that is personalised for multiple clients. Each client has it's own webpage that wants to be loaded into the webview. My pr
Solution 1:
Solution for shouldOverrideUrlLoading
not called
public void onPageStarted(WebView view, String url, Bitmap favicon) {
if (url.contains("success")) {
Intent intent = new Intent(WebviewActivity.this, OrderConfirmActivity.class);
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(intent);
} else {
super.onPageStarted(view, url, favicon);
}
}
Post a Comment for "Shouldoverrideurlloading Gets Called Only For Some Webpages"