Alarm is not fired after memory is cleared
<p>I am writing some code to fire alarm at a specific time. Everything is working fine and alarm is fired as expected.</p>

<p>But when I clear memory using some <strong>Memory Cleaner app</strong>, then the alarm is not fired.</p>

<p>I have added permissions and intent-filter for <strong>Boot Completion</strong> that set my alarm after device boot. But I don't know how to reset my alarm if any Memory Cleaner app cleans the memory?</p>

<p>Code for setting alarm</p>

<pre><code>calendar.setTimeInMillis(System.currentTimeMillis());
calendar.add(Calendar.SECOND, 10);

Intent intent = new Intent(context, DailyAlarmService.class);
PendingIntent pIntent = PendingIntent.getService(context, Constants.DAILY_ALARM_REQ_CODE, intent, PendingIntent.FLAG_UPDATE_CURRENT);
AlarmManager manager = (AlarmManager) context.getSystemService(context.ALARM_SERVICE);
manager.setRepeating(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), 5000, pIntent);
</code></pre>

<p>Thanks in Advance.</p>