In my app, i am loading "http" url in the webview. This url is loaded correctly, but there are some internal url's loaded with the protocol "sheet://". While loading this url i get an error "protocol isn't supported". Can anyone please help how to fix this? How to load the url's with the protocol "sheet://" ?
PS: I am using shouldOverrideUrlLoading method to load the url.
This is the code I am using
public boolean shouldOverrideUrlLoading(WebView view, String url) {
if(url.contains("sheet://")){
Intent url_intent = new Intent ( Intent.ACTION_VIEW,Uri.parse(url));
url_intent.addCategory(Intent.CATEGORY_BROWSABLE);
startActivity(url_intent);
return false;
}else{
view.loadUrl(url);
return true;
}
}
Thanks & Regards,