@Override
 protected Dialog onCreateDialog(final int id) {
   switch (id) {
     case Constant.DIALOG_CHALLENGE_ERROR_ACCEPT:
       final TextButtonDialog dialogAccept = new TextButtonDialog(this);
       dialogAccept.setText(getResources().getString(R.string.sl_error_message_challenge_accept));
       dialogAccept.setOnActionListener(this);
       dialogAccept.setOnDismissListener(this);
       return dialogAccept;
     case Constant.DIALOG_CHALLENGE_ERROR_REJECT:
       final TextButtonDialog dialogReject = new TextButtonDialog(this);
       dialogReject.setText(getResources().getString(R.string.sl_error_message_challenge_reject));
       dialogReject.setOnActionListener(this);
       dialogReject.setOnDismissListener(this);
       return dialogReject;
     case Constant.DIALOG_CHALLENGE_ERROR_BALANCE:
       final TextButtonDialog dialogBalance = new TextButtonDialog(this);
       dialogBalance.setText(
           getResources().getString(R.string.sl_error_message_challenge_balance));
       dialogBalance.setOnActionListener(this);
       dialogBalance.setOnDismissListener(this);
       return dialogBalance;
     case Constant.DIALOG_CHALLENGE_LEAVE_ACCEPT:
       final OkCancelDialog navigationDialog = new OkCancelDialog(this);
       navigationDialog.setText(getResources().getString(R.string.sl_leave_accept_challenge));
       navigationDialog.setOnActionListener(this);
       navigationDialog.setOnDismissListener(this);
       return navigationDialog;
     default:
       return super.onCreateDialog(id);
   }
 }
 @Override
 protected void onPrepareDialog(final int id, final Dialog dialog) {
   switch (id) {
     case Constant.DIALOG_CHALLENGE_LEAVE_ACCEPT:
       final OkCancelDialog okCancelDialog = (OkCancelDialog) dialog;
       okCancelDialog.setTarget(_navigationIntent);
       _navigationDialog = okCancelDialog;
       break;
   }
   super.onPrepareDialog(id, dialog);
 }