开发者

WebView, WebViewClient and links

开发者 https://www.devze.com 2023-04-05 04:37 出处:网络
Do I need to implement my own WebViewClien开发者_如何学JAVAt in order for my WebView to handle common links like geo:, tel: and mailto:?

Do I need to implement my own WebViewClien开发者_如何学JAVAt in order for my WebView to handle common links like geo:, tel: and mailto:?

Can't the WebView handle it on it's own?


If you want to open web pages in your application and you want to customize it, like you want to add button on the webpage then you have to implement your own WebViewClient class in your class otherwise it will open default browser of your devise/emulator and then you can not do anything on it.


Yes I agree with rahul. If you want to have control over the flow of your webview like which URLs are allowed and which are disallowed, when the loading of a page started and finished etc. then you need to have implement your webview client.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号