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?
The Google Calendar API is a RESTful API that can be accessed through explicit HTTP calls or via the Google Client Libraries.
The Calendar API lets you integrate your app with Google Calendar, creating new ways for you to engage your users.
All use of the Google Calendar API is available at no additional cost.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With