title: How can I hide the URL bar from an Android browser
body: <p>I want to hide the URL bar from the browser permanently, and it should not appear even if the person gets redirected from one page to another.
  Here is my .java code:</p>
  
  <pre><code>package com.example.com.android.royalcastleapp;
  import android.os.Bundle;
  import android.app.Activity;
  import android.view.Menu;
  import android.view.MenuItem;
  import android.view.Window;
  import android.webkit.WebSettings;
  import android.webkit.WebView;
  import android.support.v4.app.NavUtils;
  public class Bookinghome extends Activity {
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_bookinghome);
          //Get a reference of WebView holder
          WebView webview = (WebView) this.findViewById(R.id.webview);
          //Get the settings
          WebSettings websettings = webview.getSettings();
          //Enable Javascript
          websettings.setJavaScriptEnabled(true);
          //Make the zoom controls visible
          websettings.setBuiltInZoomControls(true);
          //Load the default url.
          webview.loadUrl("http//okRoom.aspx");   
      }
  @Override
      public boolean onCreateOptionsMenu(Menu menu) {
          getMenuInflater().inflate(R.menu.activity_bookinghome, menu);
          return true;
      }
  }
  </code></pre>
  
  <p>And here is my layout:</p>
  
  <pre><code>    &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent" &gt;
      &lt;WebView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_centerHorizontal="true"
          android:layout_centerVertical="true"
          android:padding="@dimen/padding_medium"
          android:text="@string/hello_world"
          tools:context=".Bookinghome" 
          android:id= "@+id/webview"/&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>If anyone could suggest any changes I could make, that would be great! </p>