BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/index.php)
-   Developer Forum (http://www.blackberryforums.com/forumdisplay.php?f=15)
-   -   Help - PIMListListener for Events (http://www.blackberryforums.com/showthread.php?t=782)

fabius 09-28-2004 07:17 PM

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

Mark Rejhon 10-12-2004 07:18 PM

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.

berry_apps 10-13-2004 02:49 PM

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.