Repeating alarms are canceled after clicking on run button in android studio

Viewed 14

I am building an app where i use repeating alarms, i know that alarms are canceled when the device is turned off and reboots again and i handle that by using a broadcast receiver.

Run icon

Now my problem is when i rerun the app on the emulator by clicking on the run button, the alarms are being canceled. i tried to use a broadcast receiver for this action android.intent.action.MY_PACKAGE_REPLACED but it didn't work.

And what does the run button do exactly?

0 Answers
Related