由网友(冥界王者)分享简介:我试图得到一个事件再次发生等情况,我认为是URI 内容://com.android.calendar/instances ,但每次我这样做,我得到一个databaseutil错误说它不存在。I am trying to get an events other reoccurring instances and I t...
我试图得到一个事件再次发生等情况,我认为是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 - see set/getJulianDay()
in Time
)
instances/groupbyday/*/*
- Same, but grouped by day.
请参阅我的答案为更多信息的另一个问题:Cannot读周期性事件从Android的Google日历编程
See my answer to another question for more information: Cannot read recurring events from android calendar programmatically
相关推荐
最新文章