Retrieving Instances of Calendar Events

I'm trying to get events of other re-instances and I thought the uri was content://com.android.calendar/instances

, but every time I do this I get a databaseutil error saying it doesn't exist.

so how do I get the event instances so I can know when the event will be set?

+2


source to share


2 answers


Current URI

  • instances/when/*/*

    - all instances are doubled (timestamp in milliseconds)
  • instances/whenbyday/*/*

    - all instances between two moments (timestamp in Julian days - see set/getJulianDay()

    in Time

    )
  • instances/groupbyday/*/*

    - The same, but grouped by day.


See my answer to another question for more info: Can't read recurring events from Android calendar programmatically

+6


source


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



+1


source







All Articles