如何在每天特定的时间在Android中,通过后台服务重复通知

编程入门 行业动态 更新时间:2024-10-26 00:28:54
本文介绍了如何在每天特定的时间在Android中,通过后台服务重复通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

你好我工作的应用程序,我已经设置通过后台服务的用户输入的日期和时间的通知。现在我想每天设置通知/报警下午6时询问用户他想要添加其他的记录? 我怎样才能做到这一点?我应该使用相同的后台服务和广播接收器? 请给我更好的解决方案和指导将是伟大的想法。 先谢谢了。

Hi I am working on application where I have set the notification on user entered date and time through background service. Now I want to set notification/alarm daily at 6 pm to ask user does he want to add another entry? How can I achieve this? Should I use the same background service or Broadcast receiver? Please give me better solution for that and tutorial will be great idea. Thanks in advance.

推荐答案

HTTP: //developer.android/reference/android/widget/DatePicker.html developer.android/training/scheduling/alarms.html developer.android/reference/android/app/Activity.html developer.android/reference/android/app/Service.html

使用报警来安排的通知,并根据所使用的活动或服务的要求。你会发现大量的实例各地。

Use alarm to schedule the notification and based on the requirements used activity or service. You will find many example around.

更多推荐

如何在每天特定的时间在Android中,通过后台服务重复通知

本文发布于:2023-11-27 10:07:46,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1637634.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:后台   通知   时间   如何在   Android

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!