Insert new calendar with SyncAdapter- Calendar API Android

假装没事ソ 提交于 2019-12-24 03:28:03

问题


I'm trying to add a new calendar to my google account by using the Android Calendar Provider API.
As written in the API you have to implement a SyncAdapter to create a new calendar.

So, if I understand things right I "just" have to add a new entry with my syncadapter in the CalendarContract.Calendars table - but I don't know how to do this.

Unfortunately I couldn't find any examples on how to create a new calendar. (And yes, a googled a lot already).

I would be grateful for even a step in the right direction.

Thanks!


回答1:


This isn't possible for now. I've tried different ways including SyncAdapter, invested a lot of time but without any luck. Check this answer: https://stackoverflow.com/a/19734278/237232



来源:https://stackoverflow.com/questions/16171040/insert-new-calendar-with-syncadapter-calendar-api-android

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