Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
Posts: 5
Registered: ‎09-21-2008
My Device: Not Specified

Detect Discarded Message using the ViewListener Interface

I'm attempting to monitor user activities in the email application.  The View Listener is working very well for that.  However I want to treat composed emails that the user discards differently from ones that are sent or saved to the drafts folder.  Any idea how?

 

I looked at the message flags and they are not set to deleted.  I also don't see anything in Message.Status that looks correct.

 

I'm using version 4.1 if that helps.  Thanks!

 

-alex

BlackBerry Development Advisor
Posts: 15,089
Registered: ‎07-09-2008
My Device: BlackBerry Passport
My Carrier: Bell

Re: Detect Discarded Message using the ViewListener Interface

There is no way to capture a message that a user composes and then discards if the message had never been saved.

 

If the message has been saved in the Drafts folder, you can capture the deletion event using the messagesRemoved method of a FolderListener.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker