android屏蔽BACK键、HOME键和多任务键

HOME:

@Override
public void onAttachedToWindow() {
System.out.println("Page01 -->onAttachedToWindow");
this.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG);
super.onAttachedToWindow();
} BACK键:
@Override
public void onBackPressed() {
// super.onBackPressed();
} 多任务键:
getWindow().addFlags(5);
上一篇:android处理Back键Home键和Menu键事件(转)


下一篇:Java之品优购课程讲义_day06(7)