如何管理我的警报应用程序的警报 [英] how to manage alarms of my alarm applications

查看:64
本文介绍了如何管理我的警报应用程序的警报的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为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.

推荐答案

这篇关于如何管理我的警报应用程序的警报的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆