Sets alarm on ACTION_BOOT_COMPLETED. Resets alarm on
TIME_SET, TIMEZONE_CHANGED
String action = intent.getAction();
if (Log.LOGV) Log.v("AlarmInitReceiver" + action);
if (context.getContentResolver() == null) {
Log.e("AlarmInitReceiver: FAILURE unable to get content resolver. Alarms inactive.");
return;
}
if (action.equals(Intent.ACTION_BOOT_COMPLETED)) {
Alarms.disableSnoozeAlert(context);
Alarms.disableExpiredAlarms(context);
}
Alarms.setNextAlert(context);