07-29-2008 12:14 PM
is there any way to get the status of the message icon that appears on the banner of the main screen (it looks like a little envelope). more specifically i want to know when it has the little red "*" on it.
Thanks
07-29-2008 01:54 PM
Store.getUnreadMessageCount() just might be what you are looking for.
-de
07-29-2008 02:04 PM
RexDoug is correct that getUnreadMessageCount() will tell you how many unread messages there are. Using a FolderListener will let you know when new messages arrive, which are the trigger for the red * to show up beside the envelope icon.
07-29-2008 04:14 PM
thanks, i have been using getUnreadMessageCount() and it is not what i am looking for as it only gets the number of unread emails, and not sms messages. In the folder listener is there any way to get when that red * goes away.
I have unread email messages that i want to keep unread, but notify myself when there is a new message (red * is there) that i am not aware of and stop this notification when the red * is gone.
Thanks
07-30-2008 08:49 AM
I haven't found any better way to accomplish what you are looking for. Even if you set up a FolderListener on the inbox, you will not get notified for SMS. You *can* set up an SMS catcher, but then you will not get any notification when the SMS is opened or deleted.