I am developing a calendar application. And i have a need to list all the events store in calendar to list in my layout. So that i need to fetch all the ev开发者_开发技巧ents from the calendar database. How can i make this possible?
You can get user's calendars, and then get its events, take a look at android calendar's EventLoader class and related classes.
The content provider for calendar events is accessible using this URLs:
for SDK version < 8 : content://calendar/events
for SDK version >= 8 : content://com.android.calendar/events
精彩评论