Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Calendar API vs Calendar Provider API

I'm a little bit confused about the difference between the two. An example of the Calendar API is supposedly located here: http://samples.google-api-java-client.googlecode.com/hg/calendar-android-sample/instructions.html, but the author himself suggests using the Calendar Provider API, details about which are here: http://developer.android.com/guide/topics/providers/calendar-provider.html.

Can someone explain to me the difference between the two, and which would be better for me to use for a simple calendar app?

like image 877
John Roberts Avatar asked Nov 18 '12 04:11

John Roberts


People also ask

Is Google Calendar API a REST API?

The Google Calendar API is a RESTful API that can be accessed through explicit HTTP calls or via the Google Client Libraries.

Is there an API for Google Calendar?

The Calendar API lets you integrate your app with Google Calendar, creating new ways for you to engage your users.

Is the Google Calendar API free?

All use of the Google Calendar API is available at no additional cost.


1 Answers

I have not gone through much of the google api code, but i think if you use google api, you will have to handle network syncing of the calendar, but Since syncing is already done by android calendar provider, You can use calendar provider by using query, insert, delete statements instead of learning the google api specification.

Further i guess using google api code, you will have to handle oauth authentication. Which is not required in case of calendar provider

So Provider should be easier.

like image 88
nandeesh Avatar answered Sep 28 '22 07:09

nandeesh