如何管理我的警报应用程序的警报

编程入门 行业动态 更新时间:2024-10-12 03:18:21
本文介绍了如何管理我的警报应用程序的警报的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在为android开发一个警报应用程序。 来自用户的输入:时间(时间对话框),重复天数(太阳,周一,周二.....),每周重复一次(是或否)和音调。 用户点击保存后我必须使用报警管理器启动报警。 现在我有很多困惑。根据android设置报警使用相同的待定意图多次没有效果,只有最新的一个生效。 现在我的问题是: 我有两个用例 1.user选择时间和重复天数(例如:星期一,星期三,坐着)和不用重复每周 2.user选择时间和重复几天(例如:周一,周二,周三)和是每周重复一次。 这里如何启动每个警报。

I am developing a alarm application for android. Inputs from user : Time(TIme dialog), Repeat days(sun,mon,tue .....), Repeat weekly(yes or no) and tone. After user clicks on save I have to start a alarm using alarm manager. Now I have lot of confusion. According to android setting alarm using same pending intent multiple times has no effect and only latest one takes effect. Now my question is: I have two use cases 1.user selects time and repeat days(for example: mon, wed, sat) and no for repeat weekly 2.user selects time and repeat days(for example: mon,tue,wed) and yes for repeat weekly. here how to start each alarm.

推荐答案

更多推荐

如何管理我的警报应用程序的警报

本文发布于:2023-11-27 22:16:15,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1639810.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:警报   应用程序

发布评论

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

>www.elefans.com

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