Issue
But when I use this code:
WebView webview = new WebView();
webview.loadUrl( "http://example.com");
It includes an address bar.
I am also curious to why there are posts all over the internet about how to hide the address bar in a WebView, when it seems to me that by default the WebView activity does hide the address bar.
Solution
Please see The method shouldOverrideUrlLoading method Definition:
This clearly explains, that If WebViewClient is not provided, by default WebView will ask Activity Manager to choose the proper handler for the url, and that is browser.
Answered By - jeet
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.