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

}

你可能感兴趣的:(ActivityGroup)