protected void onResume() { super.onResume(); try { storage = new SharedStorage(this); // populate data but only for the first time ! if (firstRun) { // populate with the values loadInfo(); firstRun = false; } } catch (Exception ex) { DKDialog.ShowMessage( this, Translate.translate("Error"), Translate.translate("Reading settings activitiy failed!"), Translate.translate("OK"), Translate.translate("Cancel")); LogWriter.writeException(this, ex.getMessage(), ex); } }
protected void onPause() { super.onPause(); // destroy storage storage = null; }