Not able to get rid of Status Bar in my android app. Have tried all the suggested(working) solutions in SO
<p>I have tried everything mentioned below but still not able to get rid of the Status Bar. </p>

<p>The LinearLayout in the layout xml has fill_parents for both vertical and horizontal attributes</p>

<p>Manifest : 
    </p>

<pre><code>android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
</code></pre>

<p>Activity :</p>

<pre><code>@Override
public void onAttachedToWindow() {
    super.onAttachedToWindow();

    this.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD);  
}

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);
}
</code></pre>

<p><b>EDIT :</b></p>

<p>The solution works if I add the android theme(android:theme="@android:style/Theme.NoTitleBar.Fullscreen") to application node rather than at the activity level in the manifest file. Why could it be so? what if I need this full screen behaviour for only one of the activities?</p>
