Saturday, 4 August 2012

Alarm is not working in android when the device is off and on again?Here is the solution....

What you can do?

1st Solution----> persist alarm information in Database.
2nd Solution----> Register for the REBOOT_COMPLETED-Event and try to pass specific value.
3rd Solution----->On reboot, start a background thread that re-registers alarm.
4th--------------->As an alternative, you can register a broadcast receiver for the intent android.intent.action.BOOT_COMPLETED and check your SharedPreferences if you need to perform an action.

Enjoy....

No comments:

Post a Comment