Skip to content Skip to sidebar Skip to footer

How To Enable Addressbar In Android WebView?

I´m actually using a WebView in my Application and it works pretty good. Now I´d like to be able to change the actual URL, just like that Addressbar in the Android Stock browser,

Solution 1:

Impossible:

The WebView class is an extension of Android's View class that allows you to display web pages as a part of your activity layout. It does not include any features of a fully developed web browser, such as navigation controls or an address bar. All that WebView does, by default, is show a web page.

http://developer.android.com/guide/webapps/webview.html

If you want to change URL by code:

WebView myWebView = (WebView) findViewById(R.id.webview);
myWebView.loadUrl("http://www.example.com");

Post a Comment for "How To Enable Addressbar In Android WebView?"