title: Android hide status bar, compatibility
body: <p>I have the following code to hide the status bar taken from <a href="http://developer.android.com/training/system-ui/status.html" rel="nofollow noreferrer">http://developer.android.com/training/system-ui/status.html</a> and <a href="https://stackoverflow.com/questions/19904166/hide-status-bar-android">Hide status bar android</a></p>
  
  <pre><code>    //hide statut bar
      if (Build.VERSION.SDK_INT &lt; 16) { //ye olde method
          getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
                          WindowManager.LayoutParams.FLAG_FULLSCREEN);
      } else { // Jellybean and up, new hotness
          View decorView = getWindow().getDecorView();
          // Hide the status bar.
          int uiOptions = View.SYSTEM_UI_FLAG_FULLSCREEN;
          decorView.setSystemUiVisibility(uiOptions);
          // Remember that you should never show the action bar if the
          // status bar is hidden, so hide that too if necessary.
          ActionBar actionBar = getActionBar();
          actionBar.hide();
      }
  </code></pre>
  
  <p>I get an error on <code>View.SYSTEM_UI_FLAG_FULLSCREEN</code>;</p>
  
  <p>it seems that <code>SYSTEM_UI_FLAG_FULLSCREEN</code> doesn't exist anymore in View.</p>
  
  <p>How to fix it? please thanks you</p>