Alarm set in app with AlarmManager removed when App Force Stop

I am trying to create an alarm with AlarmManager, it works fine even when the device is locked.

But when I kill the application with Settings -> Manege App -> MyApp -> Force Stop, then my alarm clock destroys all the settings .

So, tell me how to save the alarm settings after the application is killed even by a forced stop , and it notifies me of its usual time.

Thanks in advance...

+1
source share
2 answers

But when I kill the application using Settings → Manege application → MyApp → Force Stop, then my alarm destroys all the settings.

AlaramManager - , . - , AlarmManager ( PendingIntent).

this StackOverflow.

+2

Android 3.1, , ...

Android-... , FLAG_EXCLUDE_STOPPED_PACKAGES . . , FLAG_INCLUDE_STOPPED_PACKAGES , .

, , ( ).

+2

All Articles