每天都会在状态栏中发出通知,直到到达某一天
我想制作一个每天同一时间重复的通知,由用户选择。用户还可以决定是否通知他。
警报管理器可以实现这一点吗?我可以停止它或通过我的设置更改重复次数吗?如何让它在某一天自动停止?
多谢 :)
I want to make a Notification that repeats every day at the same time, which is choosen by the user. The user has got also the possibility to decide wheater he will be nofified or not.
Is that possible with the Alarm Manager? Can I stop it or change the repetition with my settings? How can i make it possible that it stops automatically at a certain day?
Thanks a lot :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许你可以使用带有时间表的计时器:
http://developer.android.com /reference/java/util/Timer.html
就像
你必须进行实验,但这应该是一个好的开始
Maybe you could you use a Timer with schedule:
http://developer.android.com/reference/java/util/Timer.html
Something like
You'll have to experiment, but this should be a good start