ActivityGroup openOptionsMenu

@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);

}

posted @ 2011-06-20 16:32  wanqi  阅读(401)  评论(0编辑  收藏  举报