I am writing an android app that silences and unsilences a phone when certain time is reached, on a weekly basis. However, the broadcastreceiver only fires once when I compile the code. Anyone know why? It does not fire at all after that. I have heard of the CWAC WakefulIntent, but I am designing for API 4 and hence cannot use it.
Listed below are my 2 broadcast receivers and Alarm class which sets the alarm. Silent for silencing the phone and Normal for unsilencing the phone.
Silent.java: http://pasteit.com/381
Normal.java: http://pasteit.com/380
Alarm.java: “”/382
The most likely cause of this problem is that you are not declaring the Broadcast Receivers in your manifest.