private void showCreateGameChooser() {
   DialogFragment fr = new CreateGameDialog();
   Bundle args = new Bundle();
   args.putInt(CreateGameDialog.ARGUMENT_GAME_TYPE, CreateGameDialog.MULTIPLAYER_GAME_TYPE);
   args.putBoolean(CreateGameDialog.ARGUMENT_IS_HOST, true);
   fr.setTargetFragment(this, 1000);
   ApplicationUtils.openDialogFragment(getActivity(), fr, args);
 }
 private void showDialogInner(int id) {
   DialogFragment newFragment = MyAlertDialogFragment.newInstance(id);
   newFragment.setTargetFragment(this, 0);
   newFragment.show(getFragmentManager(), "dialog " + id);
 }