BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 09-28-2004, 07:17 PM   #1
fabius
Knows Where the Search Button Is
 
Join Date: Sep 2004
Posts: 24
Default 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.
fabius
Offline  
Old 10-12-2004, 07:18 PM   #2
Mark Rejhon
Retired BBF Moderator
 
Mark Rejhon's Avatar
 
Join Date: Aug 2004
Location: Ottawa, Ontario, Canada
Model: Bold
Carrier: Rogers
Posts: 4,870
Default

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.
__________________
Thanks,
Mark Rejhon
Author of XMPP extension XEP-0301:
www.xmpp.org/extensions/xep-0301.html - specification
www.realjabber.org - open source
Offline  
Old 10-13-2004, 02:49 PM   #3
berry_apps
Thumbs Must Hurt
 
Join Date: Aug 2004
Posts: 52
Default

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
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


OEM Dell XPS 8910 8920 8930 Alienware Aurora R5 R6 R7 Front Cooling Fan 7M0F5 picture

OEM Dell XPS 8910 8920 8930 Alienware Aurora R5 R6 R7 Front Cooling Fan 7M0F5

$13.81



NEW DELL OEM REPLACEMENT PROJECTOR LAMP FOR 4220 4320 GENUINE ORIGINAL  picture

NEW DELL OEM REPLACEMENT PROJECTOR LAMP FOR 4220 4320 GENUINE ORIGINAL

$198.22



DELL 330-6581 3306581 725-10229 OEM LAMP FOR 1510X 1610HD 1610X  - Made By DELL picture

DELL 330-6581 3306581 725-10229 OEM LAMP FOR 1510X 1610HD 1610X - Made By DELL

$39.98



Dell OEM Latitude Rugged Extreme 5414 Driving Board Cable for Cable 5414VERTCBL picture

Dell OEM Latitude Rugged Extreme 5414 Driving Board Cable for Cable 5414VERTCBL

$8.95



Genuine OEM Dell 2375 B2375dnf B2375dfw 110V Fuser fixing N41P2 sku 724-BBCI picture

Genuine OEM Dell 2375 B2375dnf B2375dfw 110V Fuser fixing N41P2 sku 724-BBCI

$94.99



OEM Dell M15 R5 R6 R7 Junction Circuit Board A17SS6 P/N LS-K666P picture

OEM Dell M15 R5 R6 R7 Junction Circuit Board A17SS6 P/N LS-K666P

$45.60







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.