Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Insert new calendar with SyncAdapter- Calendar API Android

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!

like image 660
user2311533 Avatar asked Mar 22 '26 14:03

user2311533


1 Answers

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

like image 51
Dragan Marjanović Avatar answered Mar 24 '26 04:03

Dragan Marjanović



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!