How to change the alarm clock in android?
Is there a way to pragmatically change the Alarm clock in androi开发者_Go百科d ? For example I want to make a program that will change alarm every day 1 minute earlier, so if I set it on friday to ring at 7, in saturday I want to ring in 6 59 and in sunday 6 58 and so on. I know how to make the program but I don't know the part with management of the alarm
Are you talking about adding this functionality to the stock android alarm app or implementing your own alarm app?
I suggest that you take a look at the source for Clock (packages/apps/DeskClock/src/com/android/deskclock) from your android source and understand how the alarm provider / alarm app functions. There is an alarm provider, as the alarms one can set with the system alarm manager do not survive a reboot of the device.
精彩评论