Hi

I get stuck with something that , I guess , is very trivial.

Basically I am scheduling alarm for a given moment in the future :

     Intent contentIntent = new Intent(this, AlarmReceiver.class);

     PendingIntent theappIntent =
PendingIntent.getBroadcast(Main.this, 0,contentIntent, 0);

     Calendar calendar = Calendar.getInstance();
     calendar.set(year, month, day, hour,minute);

     AlarmManager am = (AlarmManager) getSystemService(ALARM_SERVICE);
     am.set(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(),
theappIntent);

works fine while mobile is constantly on.

My problem is that alarm is not triggered after mobile is restarted
and is TURNED ON on the expected time.

Is there something I missed? Should I do some extra work to keep alarm
scheduled after restart?

regards
m

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to