09-28-2004, 08:17 PM
Knows Where the Search Button Is
Join Date: Sep 2004
Post Thanks: 0
Thanked 0 Times in 0 Posts
| | Help - PIMListListener for Events
Please Login to Remove!
Has anyone this problem?
"I'm trying to write an application that interacts with User's calendar. I want to get notified when an event is deleted. I have added PIMListListener for EVENT_LIST as given in the example. When an event is deleted, I'm getting notified through itemRemoved() callback. However I am not able to get the UID of the object. Query for UID "((Event)item).getString(Event.UID)" results in ArrayOutOfBoundsException. I could retrieve rest of the fields of the item (Start,End, Alarm etc.) without any problem."
Query for UID "((Contact)item).getString(Contact.UID)" works fine.
Thanks for any suggestions.