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

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -