How to disable Home button and keep your activity fullscreen?
<p>I am developing a lock screen in my application and i have the same problem as given in the following link <strong><a href="http://stackoverflow.com/q/7583553/1105865">How to disable Home button without using the TYPE_KEYGUARD?</a></strong>. I have used </p>

<pre><code>public void onAttachedToWindow()
{  
    this.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG);     
    super.onAttachedToWindow();  
}
</code></pre>

<p>and added  <strong>android:theme="@android:style/Theme.NoTitleBar.Fullscreen"</strong> in my mainfest.xml file. but still it is not working.</p>

<p>part of my mainfest.xml </p>

<pre><code>&lt;activity android:name=".LockActivity"  android:windowSoftInputMode ="stateAlwaysHidden"
    android:theme="@android:style/Theme.NoTitleBar.Fullscreen"&gt;

    &lt;/activity&gt;
</code></pre>

<p><strong>more details about my appliation is</strong></p>

<p>my applications works in background and as i get the command my lock activity is displayed. but the problem is when i turn off my screen from power button and the command comes after that when i unlock the screen then either status bar appears or i cannot block my home button.</p>
