コード例 #1
0
 @Override
 public void onActivityResult(int requestCode, int resultCode, Intent data) {
   if (requestCode == RESULT_ADD_USER) {
     if (resultCode == Activity.RESULT_OK) {
       initSetting();
       loadMore();
     }
   } else {
     super.onActivityResult(requestCode, resultCode, data);
   }
 }
コード例 #2
0
  @Override
  public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
    if (!mSelect) {
      if (projectCreateByMe()) {
        inflater.inflate(R.menu.users, menu);
      } else {
        inflater.inflate(R.menu.common_more, menu);
      }
    }

    super.onCreateOptionsMenu(menu, inflater);
  }