Reputation: 93
Is there a way to force Android Webview to open a web page in the default browser with no changes to the Webview - meaning the code will be located in the web page itself?
My website needs media permission from the user, and if I'm hosted in a Webview (via Facebook mobile application for example), each application needs to have this permission and grant it to me.
Thanks for the help, Avi.
Upvotes: 4
Views: 2968
Reputation: 1042
No. Opening default browser by WebView requires an implementation on native App. In particular the App developer should override the method WebViewClient.shouldOverrideUrlLoading and launch an intent to load the url in a separate browser instead through the WebView.
Upvotes: 2