Yes this is what force stop does. It force stops your app. It won't run again until somebody invokes it.
On Thu, Apr 21, 2011 at 5:36 PM, Jacob <[email protected]> wrote: > 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 [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

