开发者

Getting a calendar events instances

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 sayi开发者_如何学JAVAng it does not exist.

so how do I get events instances so I can find out the next time an event is set for?


The current URI's are

  • 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.

See my answer to another question for more information: Cannot read recurring events from android calendar programmatically


The calendar provider is not part of the SDK, so the URI can and will change (and might not even be consistent across devices). Your best bet is to use the Java Client API.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜