Storing alarms' states in SharedPreferences.