简体   繁体   English

Android:如何与Google日历界面?

[英]Android: How to interface with Google Calendar?

I am building an app for Android 2.1 that provides notifications based on calendar events. 我正在为Android 2.1构建一个应用程序,它根据日历事件提供通知。 But I'm aware there are issues with the Calendar API not being readily available / stable / whatever. 但是我知道Calendar API存在问题,不能随时可用/稳定/无论如何。

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. 我想做的是以某种方式与用户的Google日历进行通信,以便每隔几个小时或者更新日历时获取任务列表,然后在本地存储这些数据,这样他们就不需要有活跃的互联网始终连接。

Then at a particular time, the notifcation event would occur. 然后在特定时间,将发生通知事件。

Surely, someone must have determined a way to interface with Google Calendar? 当然,有人必须确定一种与Google日历接口的方法吗? 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! 谢谢!

Your best bet for interfacing with Google Calendar is to use version 2 of the GData library. 与Google日历接口的最佳选择是使用GData库的第2版。 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. 该页面上有一些关于如何在Android上使用Picassa API的示例,但Calendar API应该与使用非常相似。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM