插入带有SyncAdapter-日历API的Andr​​oid新日历 [英] Insert new calendar with SyncAdapter- Calendar API Android

查看:362
本文介绍了插入带有SyncAdapter-日历API的Andr​​oid新日历的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图通过使用Android的Google日历API提供一个新的日历添加到我的谷歌帐户。结果书面的 API中你必须实现一个SyncAdapter创建一个新的日历。

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.

所以,如果我理解正确的事情我只是必须添加新条目与我在CalendarContract.Calendars表syncadapter - 但我不知道如何做到这一点。

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.

不幸的是我无法找到关于如何创建一个新的日历的例子。 (是的,一个用Google搜索了很多的话)。

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.

谢谢!

推荐答案

这是不可能的了。我尝试了不同的方式,包括SyncAdapter,投入了大量的时间,但没有任何运气。检查这个答案: http://stackoverflow.com/a/19734278/237232

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: http://stackoverflow.com/a/19734278/237232

这篇关于插入带有SyncAdapter-日历API的Andr​​oid新日历的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆