title: Using SystemUiHider to keep the navigation bar hidden
body: <p>In older versions of Android, it was necessary to use: <code>android:theme="@android:style/Theme.NoTitleBar.Fullscreen"</code> in the manifest to make the title bar disappear.</p>
  
  <p>In the newer ADT versions, I have noticed a <code>SystemUiHider</code> class, which lets you make calls to it's <code>hide()</code> method to remove not only the title bar, but also the action bar and navigation bar.</p>
  
  <p>I am trying to write a fullscreen app, that I would like to stay full screen (for a kiosk implementation), unless a small hidden button is pressed.</p>
  
  <p>I've tried taking the standard FullscreenActivity (generated from the new android project wizard), and prevent the UI from reappearing in a number of ways:</p>
  
  <ul>
  <li>Making calls to <code>mSystemUiHider.hide()</code> in the <code>setOnVisibilityChangeListener</code> (to try and immediately hide the UI when it detects a change in visibility)</li>
  <li>Setting: <code>AUTO_HIDE_DELAY_MILLIS = 0</code> (to try and immediately hide it if it is visible)</li>
  <li>Preventing the call to <code>mSystemUiHider.show();</code> within the <code>onClick</code> method of the <code>contentView.setOnClickListener</code> (to prevent it from being shown)</li>
  <li>I have also seen the <code>setSystemUiVisibility</code> example in the docs for android.view (again to try and hide it immediately if shown or visibility is changed)</li>
  </ul>
  
  <p>None of them seem to work (Android defaults to the Low Profile Mode for the Navigation Bar when any of these are tried.</p>
  
  <p>I understand that they probably don't want developers doing what I'm trying to do, but I was hoping that I could extend <code>SystemUiHider</code> (and/or <code>SystemUiHiderBase</code>) and override the <code>show()</code> methods to essentially not show unless passed a <code>true</code> flag. I can't seem to find any documentation on either of these classes (perhaps because they're utility classes?).</p>