How do disable and hide the address bar from a WebView?
- 
        7Please stop shouting.Paul Sonier– Paul Sonier2010-11-09 17:05:12 +00:00Commented Nov 9, 2010 at 17:05
 - 
        1Edited. We can now take our hands off our hears...Federico klez Culloca– Federico klez Culloca2010-11-09 17:09:12 +00:00Commented Nov 9, 2010 at 17:09
 - 
        The title was in all capital letters, this is annoying to a lot of users. As to the question, have you searched through the history? I'm pretty sure this has been answered before.Cheryl Simon– Cheryl Simon2010-11-09 17:24:19 +00:00Commented Nov 9, 2010 at 17:24
 - 
        hi, i wasnt aware it was in caps. my mistake and yes i searched and could not find a solution. Now i have though thanksJono– Jono2010-11-10 11:10:17 +00:00Commented Nov 10, 2010 at 11:10
 
5 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().
4 Comments
WebView to load did a redirect, and you did not intercept that redirect using a WebViewClient and shouldOverrideURLLoading(). A redirect or click on a link will load the resulting URL in the user's choice of browser, unless you use WebViewClient to change that behavior.Adding myView.setWebViewClient(new WebViewClient()); disabled the address bar for me.
import android.webkit.WebView;
import android.webkit.WebViewClient;
...
WebView myView = findViewById(R.id.myExampleView);
myView.setWebViewClient(new WebViewClient());
myView.getSettings().setJavaScriptEnabled(true);
myView.loadUrl("https://www.stackoverflow.com");
XML Snippet
<WebView android:id="@+id/myExampleView"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:keepScreenOn="true"
    android:gravity="center" />
source: (Japanese site): http://www.techdoctranslator.com/android/webapps/webview
Comments
Finally I Try with this. Its worked for me..
Here is the working code
private WebView webview ;   
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_ebook);
    //webview use to call own site
    webview =(WebView)findViewById(R.id.webView);
    webview.setWebViewClient(new WebViewClient());          
    webview .getSettings().setJavaScriptEnabled(true);
    webview .getSettings().setDomStorageEnabled(true);      
    webview.loadUrl("http://www.google.com"); 
}
and your entire main.xml(res/layout) look should like this:
<WebView  xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/webView"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    />
don't go to add layouts.