获得一个日历事件实例 [英] Getting a calendar events instances
问题描述
我试图得到一个事件再次发生等情况,我认为是URI 内容://com.android.calendar/instances
,但每次我这样做,我得到一个databaseutil错误说它不存在。
I am trying to get an events other reoccurring instances and I thought the uri was content://com.android.calendar/instances
but everytime i do that I get a databaseutil error saying it does not exist.
让我怎么弄的事件实例,因此我可以找出下一次的事件设置为?
so how do I get events instances so I can find out the next time an event is set for?
推荐答案
目前的URI是
-
实例/时/ * / *
- 两个时间之间的所有实例(时间戳以毫秒为单位) -
实例/ whenbyday / * / *
- 两个时间之间的所有实例(时间戳的朱利安天 - 看设置/ getJulianDay()
中的时间
) -
实例/ groupbyday / * / *
- 相同,但按天分组
instances/when/*/*
- All instances between two times (timestamp in milliseconds)instances/whenbyday/*/*
- All instances between two times (timestamp in Julian days - seeset/getJulianDay()
inTime
)instances/groupbyday/*/*
- Same, but grouped by day.
请参阅我的答案为更多信息的另一个问题:<一href=\"http://stackoverflow.com/questions/7130025/cannot-read-recurring-events-from-android-calendar-programmatically/7133990#7133990\">Cannot读周期性事件从Android的Google日历编程
See my answer to another question for more information: Cannot read recurring events from android calendar programmatically
这篇关于获得一个日历事件实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!