AlarmManager start alarm at specific time and turn off smartphone
<p>hello if I create an alarmManager and set it to a specific time and turn off my smartphone, after reboot, is possible application do an old alarm? (my smartphone was off)
I want to know if is it possible to do easily.
thanks!</p>

<p>this is how I set an alarm:</p>

<pre><code>AlarmManager am = (AlarmManager)context.getSystemService(Context.ALARM_SERVICE);
Intent i = new Intent(context, Try.class);
PendingIntent pi = PendingIntent.getBroadcast(context, 0, i, PendingIntent.FLAG_UPDATE_CURRENT);
am.set(AlarmManager.RTC_WAKEUP, TIME, pi);
</code></pre>