简体   繁体   English

日历事件触发意图?

[英]Calendar events triggering an intent?

I am writing an app and basically i need to know if there is some way to trigger an intent from my app upon an added calendarevent in google's built-in calendar. 我正在编写一个应用程序,基本上我需要知道是否有某种方法可以在Google内置日历中添加一个calendarevent时从我的应用程序触发意图。 Just to be clear, I wouldn't want my app running in the background. 明确一点,我不希望我的应用程序在后台运行。 The added calendarevent would trigger my app to wake up. 添加的calendarevent将触发我的应用程序唤醒。

Cheers, Simon 干杯,西蒙

The Calendar app does not send an intent when an event is added. 添加事件后,日历应用程序不会发送意图。 All you can do is read and write calendar data using intents as described here: http://developer.android.com/guide/topics/providers/calendar-provider.html#intents 您所能做的就是使用Intent读写日历数据,如下所述: http : //developer.android.com/guide/topics/providers/calendar-provider.html#intents

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM