是否有当用户添加一个新的日历项得到通知的方式 [英] Is there a way to get notified when a user adds a new calendar entry
问题描述
我才能在我的Android应用程序,当用户添加在他的日历应用程序的新条目通知(比如通过监听器,...),或正在检查日历每一个现在,然后通过日历的内容提供商应用程序中的唯一解决办法找出如果用户已添加新条目?
我可以在我的Android得到通知
应用程序时,用户添加新
在他的日历应用程序入口
(即通过监听器,...)
块引用>有在Android SDK没有日历应用程序。有一个在开源项目中的日历应用程序,但它可能会或可能不会给出任何设备上存在,因为设备制造商,欢迎来取代它。它也可能是用户将下载,它取代了内置一替代日历应用
每一个现在正在检查日历
然后通过的内容提供者
日历应用程序的唯一解决方案找到
是否该用户已添加新条目
?
块引用>有在Android SDK没有日历内容提供商。有通过在开源项目日历应用程序中使用的内容提供者,但参见上述问题与依靠该应用程序。此外,核Android团队祝你不会依靠的无证内容提供商。
如果你想与谷歌日历的工作,请使用适当GData API与,直到并且除非更日历功能添加到SDK
Can i get informed in my android application when a user adds a new entry in his calendar application (i.e. via listeners, ...) or is checking the calendar every now and then via the content provider of the calendar app the only solution to find out if the user has added new entries ?
解决方案Can i get informed in my android application when a user adds a new entry in his calendar application (i.e. via listeners, ...)
There is no calendar application in the Android SDK. There is a calendar application in the open source project, but it may or may not exist on any given device, since device manufacturers are welcome to replace it. It is also possible that the user will download an alternative calendar application that replaces the built-in one.
is checking the calendar every now and then via the content provider of the calendar app the only solution to find out if the user has added new entries ?
There is no calendar content provider in the Android SDK. There is a content provider used by the calendar application in the open source project, but see above for the issues with relying upon that application. Also, the core Android team wishes that you would not rely upon undocumented content providers.
If you wish to work with Google Calendar, please use the appropriate GData APIs, until and unless more calendar functionality is added to the SDK.
这篇关于是否有当用户添加一个新的日历项得到通知的方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!