@Override
 public void finish() {
   Intent intento2 = new Intent();
   if (alumno == null)
     alumno =
         new Alumno(
             idAux,
             String.valueOf(tilFoto.getEditText().getText()),
             tilNombre.getEditText().getText().toString(),
             tilCurso.getEditText().getText().toString(),
             tilTelefono.getEditText().getText().toString(),
             tilDireccion.getEditText().getText().toString(),
             Integer.parseInt(tilEdad.getEditText().getText().toString()),
             tilRepetidor.getEditText().toString().equals("true") ? true : false);
   else {
     alumno.setNombre(String.valueOf(tilNombre.getEditText().getText()));
     alumno.setTelefono(String.valueOf(tilTelefono.getEditText().getText()));
     alumno.setDireccion(String.valueOf(tilDireccion.getEditText().getText()));
     alumno.setCurso(String.valueOf(tilCurso.getEditText().getText()));
     alumno.setEdad(Integer.parseInt(String.valueOf(tilEdad.getEditText().getText())));
     alumno.setRepetidor(tilRepetidor.getEditText().toString().equals("true") ? true : false);
     alumno.setCurso(String.valueOf(tilCurso.getEditText().getText()));
   }
   intento2.putExtra(EXTRA_ALUMNO, alumno);
   setResult(RESULT_OK, intento2);
   super.finish();
 }
 /**
  * Closes the activity and saves it as completed. A subsequent call to WelcomeScreenHelper.show()
  * would not show this again, unless the key is changed.
  */
 protected void completeWelcomeScreen() {
   SharedPreferencesHelper.storeWelcomeCompleted(this, getKey());
   setWelcomeScreenResult(RESULT_OK);
   super.finish();
   if (mConfiguration.getExitAnimation() != WelcomeScreenConfiguration.NO_ANIMATION_SET)
     overridePendingTransition(R.anim.none, mConfiguration.getExitAnimation());
 }
 @Override
 public void finish() {
   super.finish();
   ButterKnife.reset(this);
   BaseAppManager.getInstance().removeActivity(this);
   overridePendingTransition(R.anim.right_in, R.anim.right_out);
 }
  /** アクティビティ終了 */
  @Override
  public void finish() {
    super.finish();

    if (mEatingTimer != null) {
      mEatingTimer.cancel();
      mEatingTimer = null;
    }
    player.unloadSounds();
  }
示例#5
0
  @Override
  public void finish() {
    Intent data = new Intent();

    EditText editText1 = (EditText) findViewById(R.id.editText1);

    String returnString = editText1.getText().toString();
    data.putExtra("returnData", returnString);

    setResult(RESULT_OK, data);
    super.finish();
  }
示例#6
0
 @Override
 public boolean onOptionsItemSelected(MenuItem item) {
   switch (item.getItemId()) {
     case R.id.clean_data:
       clean();
       return true;
     case R.id.exit:
       super.finish();
     default:
       return super.onOptionsItemSelected(item);
   }
 }
示例#7
0
 @Override
 public void finish() {
   super.finish();
   if (isOverridePendingTransition() && getPendingTransitionMode() != null) {
     switch (getPendingTransitionMode()) {
       case RIGHT:
         overridePendingTransition(R.anim.in_from_left, R.anim.out_from_right);
         // overridePendingTransition(android.R.anim.slide_in_left,android.R.anim.slide_out_right);
         break;
       case TOP:
         // overridePendingTransition(R.anim.in_from_buttom, R.anim.out_from_top);
         overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
         break;
     }
   }
 }
  public void onClickDone(View view) {

    if (mPickOptions.pickMode == Picker.PickMode.SINGLE_IMAGE) {

      sCheckedImages.add(mCurrentlyDisplayedImage);
      mCurrentlyDisplayedImage.isPicked = true;
    } else {
      // No need to modify sCheckedImages for Multiple images mode
    }

    super.finish();

    // New object because sCheckedImages will get cleared
    mPickOptions.pickListener.onPickedSuccessfully(new ArrayList<>(sCheckedImages));
    sCheckedImages.clear();
    EventBus.getDefault().removeAllStickyEvents();
  }
示例#9
0
 @Override
 public void finish() {
   super.finish();
   overridePendingTransition(R.anim.activity_fade_enter, R.anim.activity_fade_exit);
 }
示例#10
0
 @Override
 public void finish() {
   super.finish();
 }
示例#11
0
 @Override
 public void finish() {
   super.finish();
   overridePendingTransition(R.anim.show_from_right_to_left, R.anim.hide_from_right_to_left);
 }
示例#12
0
 @Override
 public void finish() {
   SuperToast.cancelAllSuperToasts();
   super.finish();
 }
示例#13
0
 @Override
 public void finish() {
   super.finish();
   overridePendingTransition(R.anim.slide_in, R.anim.slide_out);
 }
示例#14
0
 public void finish() {
   super.finish();
   overridePendingTransition(R.anim.slide_close_down_info, R.anim.slide_clode_up_info);
 }
示例#15
0
 @Override
 public void finish() {
   dissmissProcessDialog();
   super.finish();
 }
 /**
  * Closes the activity, doesn't save as completed. A subsequent call to WelcomeScreenHelper.show()
  * would show this again.
  */
 protected void cancelWelcomeScreen() {
   setWelcomeScreenResult(RESULT_CANCELED);
   super.finish();
 }
示例#17
0
 // Cuando se finaliza la actividad.
 @Override
 public void finish() {
   retornarRespuesta();
   super.finish();
 }
示例#18
0
 @Override
 public void finish() {
   super.finish();
   Util.disablePendingTransition(this);
 }
 @Override
 public void finish() {
   super.finish();
   ActivityLauncher.slideOutToRight(this);
 }
 @Override
 public void finish() {
   super.finish();
   this.overridePendingTransition(R.anim.end_right_left_enter, R.anim.end_right_left_exit);
 }
示例#21
0
 @Override
 public void finish() {
   super.finish();
   overridePendingTransition(0, 0);
 }
示例#22
0
 @Override
 public void finish() {
   setResult(changed ? RESULT_OK : RESULT_CANCELED);
   saveFilter(GGApp.GG_APP.filters);
   super.finish();
 }