title: Theme.NoTitleBar.Fullscreen make status bar/notification bar visible for few seconds and then hides
body: <p>I want to make full screen activity with no title bar and no status bar. I tried below mentioned code, it make activity full screen but status bar/notification bar is visible for few seconds and then hides. 
  <strong>Is there any way I can make activity full screen as soon as it appears to user.</strong></p>
  
  <p>Code Tried: I tried it on android 2.3 and 4.1.2</p>
  
  <p>1) Progrmatically:</p>
  
  <pre><code>public class MyActivity extends Activity {
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
  
          requestWindowFeature(Window.FEATURE_NO_TITLE);
          getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
              WindowManager.LayoutParams.FLAG_FULLSCREEN);
          setContentView(R.layout.main);
      }
  }
  </code></pre>
  
  <p>2) Or via AndroidManifest.xml file:</p>
  
  <pre><code>&lt;activity android:name=".MyActivity"
      android:label="@string/app_name"
      android:theme="@android:style/Theme.NoTitleBar.Fullscreen"&gt;
  &lt;/activity&gt;
  </code></pre>