I need to remind user about their tablets to be intaken at specific interval in day time only. I know how the notification and alram manager works. But don't know how can I solve my above mentioned problem. Sometimes in between I need to stop/cancel that repeating alarm.
Any help will be greatly appreciated.
regds, Pratheeja
You can use the PendingIntent you fire to reset the alarm every time it goes off by adding a new alarm in 24 hours. Don't forget to add a BroadcastReceiver that receives device boot action ( android.intent.action.BOOT_COMPLETED
) as alarms get deleted on device boot and you would have to reset the alarm to the remaining time.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.