@Override public void onReceive(Context context, Intent intent) { String action = intent.getAction(); if (Intent.ACTION_BOOT_COMPLETED.equals(action)) { // Reinitialize service on reboot NotificationService.actionReschedule(context); } else { NotificationService.actionUpdate(context, intent.getLongExtra("checkId", -1)); } }