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 - seeset/getJulianDay()
inTime
)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.
精彩评论