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: 97
Registered: ‎09-21-2010
My Device: 8900
My Carrier: developer

How to stop the receiving of the emails in the device through programming?

Hi 

 

Please help me in finding the solution of stopping  the receiving the emails in the device through programming?

 

Regards

Amrinder Singh

 

 

 

Regular Contributor
Posts: 97
Registered: ‎09-21-2010
My Device: 8900
My Carrier: developer

Re: How to stop the receiving of the emails in the device through programming?

HI 

 

Please help for this Smiley Sad

 

 

Regards

Amrinder Singh

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: How to stop the receiving of the emails in the device through programming?

[ Edited ]

<mis read question - ignore this>

Developer
Developer
Posts: 1,123
Registered: ‎02-10-2009
My Device: 8130 / 8350 / 9530 / 9550 / 9850 / PlayBook
My Carrier: Verizon

Re: How to stop the receiving of the emails in the device through programming?

What exactly are you trying to do? Stop all emails, emails for a specific account, or by keyword filter?

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

Re: How to stop the receiving of the emails in the device through programming?

as far as i know you cannot stop the device receiving mails, but you can delete them all. even if i don't see an usecase for that.
----------------------------------------------------------
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: 97
Registered: ‎09-21-2010
My Device: 8900
My Carrier: developer

Re: How to stop the receiving of the emails in the device through programming?

Hi

 

I want to Stop email to arrive on the device and to show that emails on my  application.

 

Regards

Amrinder Singh

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: How to stop the receiving of the emails in the device through programming?

All Emails? Do you actually want to remove RIM's email application or can people still use this as well as yours.  Is this only to view emails, what about sending them?

 

Can you briefly explain why you want to do this?   You think you have a better mail viewer than RIMs or is this some sort of security thing?  Seems like a lot of work for no real gain to me.

Regular Contributor
Posts: 97
Registered: ‎09-21-2010
My Device: 8900
My Carrier: developer

Re: How to stop the receiving of the emails in the device through programming?

Hi Peter

 

For example :Configuartion of the mails to the application by stoping the mails to come on the device.

After Storing the mails to the Application ,We could use it for the BBM integartion .Want to make the email to store on the Application to use it for the blackberry messenger .

 

Regards

Amrinder Singh

 

 

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: How to stop the receiving of the emails in the device through programming?

Sorry, probably just me, but I do not understand what you are saying. 

 

Don't forget to answer all the questions I asked, as that will help decide how best to proceed with this question. 

Developer
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: How to stop the receiving of the emails in the device through programming?

I have "accidentally" stopped emails by throwing an unhandled exception in a FolderListener implementation. I don;t think you want this, though.

 

My guess is that there is no way to "stop" the emails. You *can* intecept all emails using FolderListener, attaching the listener to the email Store.

 

You could probably mark these as "read" and allow them to flow to the inbox, but at the same time, store them in your own email application.

 

I'm with Peter on this though - I don't see a valuable result from this. You can accomplish quite a bit by extending the existing Messages application. What exactly do you need to accomplish that cannot be done in the Messages app?