I am developing a lock screen in my application and i have the same problem as given in the following link How to disable Home button without using the TYPE_KEYGUARD?. I have used
public void onAttachedToWindow()
{
this.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG);
super.onAttachedToWindow();
}
and added android:theme="@android:style/Theme.NoTitleBar.Fullscreen" in my mainfest.xml file. but still it is not working.
part of my mainfest.xml
<activity android:name=".LockActivity" android:windowSoftInputMode ="stateAlwaysHidden"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
</activity>
more details about my appliation is
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.