Android 日历提供程序 API 级别 [英] Android Calendar Provider API Level
问题描述
我们正在开发一款 Android 日历应用.问题是我们想要获取其他日历的事件并将我们的事件也分享给他们.正如我所读到的,这是由内容提供商实现的.
We are developing an Android calendar app. The problem is that we want to get the events of other calendars and share our event to them too. As I have read this is achieved by a content provider.
问题是日历内容提供者所需的API级别是API 14,我们需要在API 7(Android 2.1)中使用它.我已经看到在 Android 2.1 中执行此操作的应用程序.
The problem is that the API level required by calendar content provider is API 14 and we need to use it in API 7(Android 2.1). I have seen apps that do that in Android 2.1.
我们怎样才能做到这一点?
How can we achieve that?
推荐答案
日历提供程序在那里,但 API 在 API 级别 14 之前不公开,并且权限可能因设备而异.以下是一些示例:有没有办法在不使用 gdata-java-client 的情况下访问日历条目?
The calendar provider is there but the API is not public before API level 14 and the authority may vary from device to device. Here are some examples: Is there a way to access the calendar's entries without using gdata-java-client?
这篇关于Android 日历提供程序 API 级别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!