问题
I would like to retrieve a Google Calendar event using get from Google Calendar API:
String myEventID = ... // ?
Event event = service.events().get("primary", myEventID).execute();
Is it possible to get this myEventID parameter using Calendar Provider? Events table does not seem to contain anything similar to event id (CalendarContract.Events._ID is a totally different thing).
回答1:
CalendarContract.Events._SYNC_ID is the answer.
回答2:
CalendarContract.Events._ID
is unique ID for a row.
来源:https://stackoverflow.com/questions/33426680/which-event-column-calendar-provider-corresponds-to-event-id-google-calendar