How to get calendar event updates on Android device? -
i want calendar event updates (when new event added or existing event deleted ) on android 2.2 devices ?
in other words, program wants notifications calendar event changes
anyone has thoughts regarding how this?
whenever calendar update made,u can notification using content observer,u have register first observer using
this.getcontentresolver().registercontentobserver(uri, true, observer);
where uri the calendar uri "content://com.android.calendar/events" , observer object of class extending content observer overrides on change method,invoked when change occurs
you have notify observer using
this.getcontentresolver().notifychange(eventsuri, null) wherever u r performing changes in read or delete operation of calendar
Comments
Post a Comment