How to access user's Calendar on Android devic

2019-02-15 06:45发布

I'm writing simple Android app to filter some events from user's calendar. The questions is, what is the best way to access it?

One option that comes to my mind is through Google Calendar Data API where I will have to authenticate the user and synchronize with the calendar in my app.

Is there any way to access the calendar through Android? Meaning that I will only access it locally and Android itself will handle the authentication, synchronization, etc.

3条回答
Anthone
2楼-- · 2019-02-15 06:59

There is a good example of accessing Google Calendar Data API from Android using the Google API Client Library for Java at calendar-v2-atom-android-sample. With this solution, Android takes care of the authentication/authorization, but not the synchronization.

Disclaimer: I am an owner of the Google API Client Library for Java project.

查看更多
仙女界的扛把子
3楼-- · 2019-02-15 07:00

Is there any way to access the calendar through Android? Meaning that I will only access it locally and Android itself will handle the authentication, synchronization, etc.

There is no documented and supported way of doing this. Please use the Google Calendar GData API.

查看更多
闹够了就滚
4楼-- · 2019-02-15 07:06

I am not an android Geek but here are few suggestions as far as I know,

Before Android 2.0 there was no support for this...But I think this works with 2.1 and 2.2, more over some developers already implemented this in their apps.

check the links below.

http://jimblackler.net/blog/?p=151

http://www.developer.com/article.php/3850276

PS:Sorry for second link format, I am new here, so cannot post more than 1 link.

查看更多
登录 后发表回答