I have a problem. I am new to android and java and I'm making a program which turns off the phone sounds and dims the display at the user selected time. Everything is done by getti
Solution 1:
Your approach is correct.
The only thing you need to add is persisting it in DB or elsewhere. Every time user sets up stuff and you interact with AlarmManager
, put it also in a file.
When you get BOOT_COMPLETED
, load data and set all previously alarms up.
Post a Comment for "Setting Alarm After Phone Reboot"