/** Put the vibrator in mode On */
  private void vibrateOn() {

    try {

      String vibratorService = Context.VIBRATOR_SERVICE;
      Vibrator vibrator = (Vibrator) ConfigAppValues.getContext().getSystemService(vibratorService);

      vibrator.vibrate(1000);

    } catch (Exception e) {
      if (QSLog.DEBUG_E)
        QSLog.e(CLASS_NAME, ExceptionUtils.exceptionTraceToString(e.toString(), e.getStackTrace()));
    }
  }
  /**
   * Put the mobile in normal mode (audio and vibrate), important: normal mode such the user defined
   * previously (before to put the mobile in silence)
   */
  private void putRingerModeNormal() {

    try {
      if (QSLog.DEBUG_D) QSLog.d(CLASS_NAME, "Poniendo el movil en modo normal");

      AudioManager audioManager =
          (AudioManager) ConfigAppValues.getContext().getSystemService(Context.AUDIO_SERVICE);
      audioManager.setRingerMode(AudioManager.RINGER_MODE_NORMAL);

      ConfigAppValues.processIdleCall = false;

    } catch (Exception e) {
      if (QSLog.DEBUG_E)
        QSLog.e(CLASS_NAME, ExceptionUtils.exceptionTraceToString(e.toString(), e.getStackTrace()));
    }
  }