在 Android 应用程序中显示 Google 日历数据
我正在尝试在我的 Android 应用程序中显示谷歌日历事件,但似乎没有任何效果。该日历属于客户所有,因此我们无法公开他们的身份验证凭据。我尝试过使用 GData 和 OAuth,但似乎都不允许我们提取任何事件。任何帮助或建议将不胜感激。
谢谢!
I'm trying to display google calendar events in my android app but nothing seems to work. The calendar is one owned by a client and thus we cannot make their authentication credentials public. I've tried using GData and OAuth but none seem to let us pull any events. Any help or suggestions would be appreciated.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
直到最近,还没有官方 API 可以以纯 Android 方式访问 google 日历。简而言之,除非您正在构建冰淇淋三明治,否则您无法做到这一点。如果您觉得只能定位冰淇淋三明治及以上,则可以使用 CalendarContract API。
如果您决心与 Google 日历交互并支持的不仅仅是冰淇淋三明治,您可以直接与 Google 日历 API。但这可能会非常复杂。
Up until very very recently there has been no official API for accessing google calendars in a purely android way. In short, you can't do this unless you're building for Ice Cream Sandwich. If your cool with only being able to target Ice Cream Sandwich and above, you can use the CalendarContract API.
If you're dead set on interacting with google calendars and supporting more than just Ice Cream Sandwich, you could interface directly with the google calendars api. This will probably be pretty complicated though.