Help - PIMListListener for Events
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. fabius |
I heard that if you use a private static variable (declare the event list as static), the listener will stay continuously resident.
I confirmed this on RIM Developer's forum as well. |
It's a known issue, that you are not able to get the UID from an event item once it has been deleted. I have been told it is fixed in 4.0
|
All times are GMT -5. The time now is 07:34 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.