BlackBerry Forums Support Community

Closed Thread
LinkBack Thread Tools
Old 09-18-2009, 10:59 PM   #1 (permalink)
Knows Where the Search Button Is
Join Date: Aug 2007
Model: 8100
Carrier: cingular
Posts: 33
Post Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation Single mail message is generating multiple listener events

Please Login to Remove!


I’m trying to log the email message events for the ‘Outbox’ folder on Blackberry Bold-9000 by associating the folder listener.
But sometimes the listener activates the associated methods multiple times for a single email message. Hence, making duplicate log entries against a single message.

Is there any property that can be checked to eliminate the multiple activation of associated method?

Please let me know if there is any other method that can be used to solve this issue.
Old 09-19-2009, 09:17 AM   #2 (permalink)
BlackBerry Extraordinaire
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts

Make certain that you are removing your listener when the app shuts down.

If you don't, you'll wind up with multiple listeners.

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