屏蔽键

publicvoidonBackPressed(){// TODO Auto-generated method stubsuper.onBackPressed(); }@OverridepublicbooleanonKeyDown(intkeyCode,KeyEvent event){if(keyCode==KeyEvent.KEYCODE_BACK)returntrue;//不执行父类点击事件 returnsuper.onKeyDown(keyCode, event);//继续执行父类其他点击事件 }

你可能感兴趣的:(屏蔽键)