alarm is automatic running after reboot even alarm is not set android

75 Views Asked by At

Hi I am developing an application in Android which playing Alarm. It can reset alarm after reboot phone . But there is a problem that, it is running alarm even if alarm is not set at all. Please help me.

1

There are 1 best solutions below

3
On

You should check you if your 'if' statement is correct before your instruction is running, or if you don't have register 'ON_BOOT_RECEIVER' broadcast in your manifest.

Anothor solution is to debug your code with System.out.println() to check each variable state, or each step.