@Override public boolean onKeyUp(int keyCode, KeyEvent event) {
if(keyCode==KeyEvent.KEYCODE_MENU) {
this.getLocalActivityManager().getCurrentActivity().openOptionsMenu();
}else if(keyCode == KeyEvent.KEYCODE_BACK){
finish();
}
return super.onKeyDown(keyCode, event);
}
分类:
android solve
本文转自wanqi博客园博客,原文链接:http://www.cnblogs.com/wanqieddy/archive/2011/06/20/2085328.html
如需转载请自行联系原作者