title: Making an Android app fullscreen with Cordova
body: <p>I'm a newcomer to Cordova, and am trying to make an app that appears full screen (hiding the taskbar at the bottom of Android). </p>
  
  <p>I have looked online and there seem to be two different techniques.... I have tried adding </p>
  
  <pre><code>&lt;preference name="Fullscreen" value="true" /&gt; to my config.xml
  </code></pre>
  
  <p>so that it reads</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='utf-8'?&gt;
  &lt;widget id="io.cordova.hellocordova" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"&gt;
      &lt;preference name="loglevel" value="DEBUG" /&gt;
      &lt;preference name="AndroidLaunchMode" value="singleTop" /&gt;
      &lt;feature name="App"&gt;
          &lt;param name="android-package" value="org.apache.cordova.App" /&gt;
      &lt;/feature&gt;
      &lt;name&gt;HelloCordova&lt;/name&gt;
      &lt;description&gt;
          A sample Apache Cordova application that responds to the deviceready event.
      &lt;/description&gt;
      &lt;author email="dev@cordova.apache.org" href="http://cordova.io"&gt;
          Apache Cordova Team
      &lt;/author&gt;
      &lt;content src="index.html" /&gt;
      &lt;access origin="*" /&gt;
      &lt;preference name="Fullscreen" value="true" /&gt;
      &lt;preference name="WebViewBounce" value="true" /&gt;
      &lt;preference name="Orientation" value="landscape" /&gt;
      &lt;preference name="HideKeyboardFormAccessoryBar" value="true" /&gt;
  &lt;/widget&gt;
  </code></pre>
  
  <p>The status bar still remains at the bottom (although the app does fix at landscape). I have also tried the other advice which involves adding lines to hellocordova.java. This imports android.view.WindowManager; and then adds lines after loading index.html:</p>
  
  <pre><code>(WindowManager.LayoutParams.FLAG_FULLSCREEN,                   WindowManager.LayoutParams.FLAG_FULLSCREEN WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);
  </code></pre>
  
  <p>This method stops the app from compiling with cordova build android. </p>
  
  <p>Any tips of where I can be looking. </p>
  
  <p>I'm using Android 4.1.1</p>