num Instances
Queries the Instances.CONTENT_URI to finds the number of instances of the given event, excluding deleted and canceled exceptions.
Note: The corresponding calendar must have SYNC_EVENTS=1, otherwise the calendar provider won't expand the instances (see CalendarInstancesHelper.getEntries / CalendarInstancesHelper.SQL_WHERE_GET_EVENTS_ENTRIES).
Return
number of event instances (not counting deleted and canceled exceptions); null if Calendars.SYNC_EVENTS is not set, or the number can't be determined, or the event has no last date (recurring event without last instance)
Parameters
event Id
Event ID to query number of instances for
check Sync Events
If true, verifies that Calendars.SYNC_EVENTS is set in values before querying the instances
Throws
when the content provider returns an error