Android: How to interface with Google Calendar?

天涯浪子 提交于 2019-12-30 04:57:07

问题


I am building an app for Android 2.1 that provides notifications based on calendar events. But I'm aware there are issues with the Calendar API not being readily available / stable / whatever.

What I'd like to do is somehow communicate with the user's Google Calendar to get a list of tasks every few hours, or perhaps when the calendar is updated, and then store that data locally so they don't need to have an active internet connection at all times.

Then at a particular time, the notifcation event would occur.

Surely, someone must have determined a way to interface with Google Calendar? I'm sure there must be numerous apps and solutions available that connect to it already, and my users can use any interface they like for interacting with it, but I need to be able to read the data and store it locally.

Thanks!


回答1:


Your best bet for interfacing with Google Calendar is to use version 2 of the GData library. There are a few examples on that page on how to use the Picassa API with Android, but the Calendar APIs should be fairly similar to use.



来源:https://stackoverflow.com/questions/2976927/android-how-to-interface-with-google-calendar

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