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
Regular Contributor
Posts: 66
Registered: ‎09-06-2011
My Device: 9930
My Carrier: 9930

how to stop messages from going into inbox?

HI

           i want some specific messages to be stop from going into inbox.

          can u pls provide me snippet

Developer
Posts: 16,987
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: how to stop messages from going into inbox?

use a mail listener, like http://supportforums.blackberry.com/t5/Java-Development/Listening-for-email-and-triggering-notificat...

mark the mail as read and delete it.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Regular Contributor
Posts: 66
Registered: ‎09-06-2011
My Device: 9930
My Carrier: 9930

Re: how to stop messages from going into inbox?

[ Edited ]

Thanks for reply.

                                     i went through link but i am not finding it helpable.

Actually i am tring one app which listens to the incoming messages. i am recieving msg successfully. now i want to prevent them from going into message inbox. can u pls provide me api/code.

 

 

 

 

 

 

 

Developer
Posts: 16,987
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: how to stop messages from going into inbox?

mark the message as read and delete it.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Regular Contributor
Posts: 66
Registered: ‎09-06-2011
My Device: 9930
My Carrier: 9930

Re: how to stop messages from going into inbox?

but i want to do it programatically. pls help

Developer
Posts: 16,987
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: how to stop messages from going into inbox?

i was talking about doing it programatically, this being the developer board.

http://www.blackberry.com/developers/docs/7.0.0api/net/rim/blackberry/api/mail/Message.html#setFlag(... boolean)
to mark as read

http://www.blackberry.com/developers/docs/7.0.0api/net/rim/blackberry/api/mail/Folder.html#deleteMes...
to delete
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Regular Contributor
Posts: 66
Registered: ‎09-06-2011
My Device: 9930
My Carrier: 9930

Re: how to stop messages from going into inbox?

I am trying an app for listening message,

 if string recieve by message listener is specific to the app then it should not go into inbox though it is recieved.

can u pls help

Developer
Posts: 16,987
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: how to stop messages from going into inbox?

read the link i have posted above
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Regular Contributor
Posts: 66
Registered: ‎09-06-2011
My Device: 9930
My Carrier: 9930

Re: how to stop messages from going into inbox?

Thanks for reply.

                                I had tried out some of the methods/api from the link given by you but still my message going into inbox can u pls suggest me some specific methods/api that prevent messages from going into message inbox.

pls reply as i am very new to BB development. and  supportforums.blackberry.com is my only resource where i am asking all my quries  

 

Developer
Posts: 16,987
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: how to stop messages from going into inbox?

sure, the message goes into the inbox, but you delete it immediately afterwards. is that unacceptable for your usecase?
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter