Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable address bar in Android webview

How do disable and hide the address bar from a WebView?

like image 297
Jonathan Avatar asked Nov 09 '10 17:11

Jonathan


1 Answers

There is no address bar in a WebView.

If you think you have a WebView, and you see an address bar, that is not your WebView. Rather, you are looking at the Browser application. Most likely, the URL you told the WebView to load did a redirect, and you did not intercept that redirect using a WebViewClient and shouldOverrideURLLoading().

like image 160
CommonsWare Avatar answered Sep 22 '22 06:09

CommonsWare