有没有办法在用户添加新日历条目时收到通知
当用户在其日历应用程序中添加新条目(即通过侦听器...)或时不时地通过日历应用程序的内容提供程序检查日历时,我可以在我的 Android 应用程序中收到通知吗?输出用户是否添加了新条目?
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 ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Android SDK 中没有日历应用程序。开源项目中有一个日历应用程序,但它可能存在于任何给定设备上,也可能不存在,因为欢迎设备制造商替换它。用户也有可能下载另一种日历应用程序来替换内置日历应用程序。
Android SDK 中没有日历内容提供程序。开源项目中的日历应用程序使用了一个内容提供程序,但请参阅上面的内容以了解依赖该应用程序的问题。另外,核心 Android 团队希望您不要依赖 无证内容提供商。
如果您希望使用 Google 日历,请使用相应的 GData API,直到且除非SDK 中添加了更多日历功能。
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.
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.