如何在事件更新时更新日历中的闹钟时间?
我正在尝试更新插入日历事件时设置的闹钟时间。 我通过网络搜索并得到最终结果,事件警报可以取消,并且可以单独更新特定事件以新的警报时间。我在这里被删除了如何实现它。非常感谢任何帮助,并提前致谢...
I'm trying to update the alarm time that is set when calendar events are inserted.
I've searched through net and got a final that the event alarm can be cancelled and the particular event alone can be updated with new time for alarm. I'm struck out here how to implement it. Any help is highly appreciated and thanks in advance...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您不想弄乱日历。它不是Android API的一部分,即使存在后门,我们也不建议使用它。
即使您想要“贪睡”功能,您也无法捕获导致警报响起的 Intent,因为这不是 API 标准,并且可能会针对特定接收器类而触发。
不过,您可以通过 Google Data API,但那是一个完全不同的故事。
You don't want to be messing with the calendar. It's not part of the Android API, and even if there exists a back door, it is highly discuraged to use it.
Even if you want a "Snooze" functionality, you won't be able to capture the Intent that causes the alarm to go off, as this is not an API standard, and may be fired targeting a specific receiver class.
You can however access and modify the calendar entries through the Google Data API, but that's a whole different story.