title: How to set the browser intent as a fullscreen mode in android?
body: <p>I have an android application which will load a website in the browser. i need that browser should be in a full screen mode while opening through the application. And i need to remove the address bar from the browser.
  and this is my code</p>
  
  <pre><code>requestWindowFeature(Window.FEATURE_NO_TITLE);
  getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
  WindowManager.LayoutParams.FLAG_FULLSCREEN);
  
  String url = "http://google.com";
  Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
  i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
  i.setPackage("com.android.chrome");
  try {
       startActivity(i);
      } catch (ActivityNotFoundException e) {
                  i.setPackage("com.android.browser");
                  startActivity(i);
      }
  finish();
  </code></pre>