I add this code in my activity
public boolean onKeyDown(int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_HOME) {
return false;
}
return super.onKeyDown(keyCode, event);
}
public void onAttachedToWindow() {
super.onAttachedToWindow();
this.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD);
}
and the home button is looks like it is disabled
But the problem is when someone press the menu button and when my menu button is shown and the user press home button then the home button is enabled and home screen is shown