Reputation: 9629
I use the undocumented API's for calendar integration for Android OS 2.2. Now that 4 is out, naturally the API's I use don't work! I looked at the Android SDK regarding the calendar api's in level 14 but I'd love to see some examples of actually implementing the calendar API.
If anyone has any samples to share or a link to samples, please let me know.
Thank you.
P.S. If someone has the reputation power to add a tag for android-sdk-4 that would help. I was unable.
Upvotes: 0
Views: 838
Reputation: 2208
There's an example of using the new API in https://github.com/xamarin/Seminars/tree/master/2012-02-09-Top5FeaturesOfICS/CalendarDemo
There's a Seminar that features this on YouTube: http://youtu.be/CcdUq1AQfQ8?hd=1&t=2m45s
And there's also a write up of the API on here: http://docs.xamarin.com/android/tutorials/Introduction_to_Ice_Cream_Sandwich#Calendar_API
Upvotes: 2
Reputation: 31
You can do it on the emulator. Try Settings -> Accounts & sync -> ADD ACCOUNT -> Corporate Set up server as m.google.com and enable SSL. It works for me.
Upvotes: 2
Reputation: 1007296
If anyone has any samples to share or a link to samples, please let me know.
Here is a sample project that queries CalendarContract
for events and loads them into a ListView
.
Note that you probably need a production Android 4.0+ device to experiment with this -- certainly, it does not work in the emulator, as you can't actually set up a calendar account.
Upvotes: 1