开发者

Can i get the events from events database dynamically(in code)?

开发者 https://www.devze.com 2023-04-05 20:32 出处:网络
I am developing a calendar application. And i have a need to list all the events store in calendar to list in my layout.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消