[android-developers] Alarm Manager doesn't seem to wake up after a force stop.
Hi
I have read posts, some dating back to 2009 about alarm manager.
I have an alarm manager setup. It works fine. But "Settings-
>Applications->Manage Applications->my app package name->Force Stop"
seem to remove the alarm too.
Some posts seems to say that after the app is killed alarm manger
should work fine. Not for me. Am I missin somethin? or its an expected
behavior?
My Code is:
Intent intentAlarm = new Intent(MyService.this,
MyBroadcastReceiver.class);
intentAlarm.setAction(TEST_ALARM_SERVICE); //I receive this event in
the receiver
PendingIntent sender = PendingIntent.getBroadcast(MyService.this, 0,
intentAlarm, 0);
AlarmManager am = (AlarmManager)getSystemService(ALARM_SERVICE);
am.setRepeating(AlarmManager.ELAPSED_REALTIME, myFirstTime,
myAlramInterval, sender);
Thank you
Jacob
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home