title: Hide Navigation Bar Permanently
body: <p>I've followed this thread to hide Navigation bar:</p>
  
  <p><a href="https://stackoverflow.com/questions/8469112/hide-ics-back-home-task-switcher-buttons">Hide ICS back home task switcher buttons</a></p>
  
  <p>Works fine when the Activity starts, but whenever I press anywhere on the screen the Navigation bar appears again. I've tried this on an empty Activity without any "views" except the Content View.</p>
  
  <p>How can I hide it throughout the duration of my Activity without having to add some kind of Timer or a Thread to just hide it every millisecond?</p>
  
  <p>It would be great to gain some extra screen size or be able to customize my own Navigation Bar throughout my App.</p>
  
  <pre><code>if( Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.ICE_CREAM_SANDWICH )
      getWindow().getDecorView().setSystemUiVisibility( View.SYSTEM_UI_FLAG_HIDE_NAVIGATION );
  else if( Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.HONEYCOMB )
      getWindow().getDecorView().setSystemUiVisibility( View.STATUS_BAR_HIDDEN );
  </code></pre>