Which event column (Calendar Provider) corresponds to event id (Google Calendar API)?

两盒软妹~` 提交于 2020-01-25 20:55:07

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!