@Override public void onResume() { try { QSLog.d(CLASS_NAME, "En onResume"); super.onResume(); initActivity(); } 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())); } }
/** * Create the activity dialogs used for it * * @param id * @return the dialog for the option specified * @see Dialog */ @Override protected Dialog onCreateDialog(int id) { Dialog dialog; switch (id) { case ABOUT_DIALOG: if (QSLog.DEBUG_D) QSLog.d(CLASS_NAME, "Create about dialog for 1st time"); dialog = showWebviewDialog(IDialogs.ABOUT_URI); break; case HELP_DIALOG: dialog = showWebviewDialog(IDialogs.HELP_SETTINGS_URI); break; default: dialog = null; } return dialog; }