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: 75
Registered: ‎04-07-2009
My Device: Not Specified
Accepted Solution

Is it possible to listen all incoming messages in BlackBerry application?

Hi!

Is it possible to activate our BlackBerry UI application for all incoming messages(inbox contents)  without any specific port of message. Atleast tell me, how to push our UIApplication for incoming message alert.

Developer
Posts: 395
Registered: ‎12-18-2008
My Device: BlackBerry Torch 9800
My Carrier: AT&T

Re: Is it possible to listen all incoming messages in BlackBerry application?

Create a FolderListener for the Messages application. This will allow your application to process (look at) all incoming messages. You can also look at outgoing messages too.
New Developer
Posts: 75
Registered: ‎04-07-2009
My Device: Not Specified

Re: Is it possible to listen all incoming messages in BlackBerry application?

Hi! Thank u for ur reply,

Can u tell me how to create folder listener for message. Atleast tell me the which BlackBerry api package be used for it.

Pls, help me----

Developer
Posts: 342
Registered: ‎02-04-2009
My Device: BB 8320

Re: Is it possible to listen all incoming messages in BlackBerry application?

New Developer
Posts: 75
Registered: ‎04-07-2009
My Device: Not Specified

Re: Is it possible to listen all incoming messages in BlackBerry application?


baskaraninfo wrote:

Refer the following articles:

 

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800698/What_Is...

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800451/800563/What_Is... 


Thank u for ur reply, I used FolderListener as specified in the above articles, but the implemented functionality(in the messageAdded, messageRemoved methods) cann't work even when a new message is arrived in the folders(using save draft), or removed from the folders.

Pls, help suggest me, any thing wrong in my implemented flow-----

Thanks in advance---

Developer
Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: Is it possible to listen all incoming messages in BlackBerry application?

If you looking for the Messages(mail) to be listened when tehy arrive the last post by baskaran should work.

 

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800698/What_Is...

 

How are you testing? you can use ESS to test emaling on simulator.


Use Search. "Accept Solution" If the problem is resolved.
New Developer
Posts: 75
Registered: ‎04-07-2009
My Device: Not Specified

Re: Is it possible to listen all incoming messages in BlackBerry application?

Sorry, I am asking for message(SMSs) listening.

Is that folderlistener can't work for SMSs (added, removed).

Developer
Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: Is it possible to listen all incoming messages in BlackBerry application?

Check this KB article.

 

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800451/800563/How_To_...

 

FolderListener is Mail API.


Use Search. "Accept Solution" If the problem is resolved.
Highlighted
Developer
Posts: 342
Registered: ‎02-04-2009
My Device: BB 8320

Re: Is it possible to listen all incoming messages in BlackBerry application?

Different ways to listen for SMS messages:

 

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800451/800563/What_Is...  

 

A relevant post for your reference:

 

http://supportforums.blackberry.com/rim/board/message?board.id=java_dev&message.id=19154#M19154 


Use Search. "Accept Solution" if the problem gets resolved.
New Developer
Posts: 75
Registered: ‎04-07-2009
My Device: Not Specified

Re: Is it possible to listen all incoming messages in BlackBerry application?

Hi! Thank u so much, for replying,

I need to clear my doubt now, I know, how to listen incoming messages(specific port) in BlackBerry when the application is at running. 

I have  only one doubt, that is when the BlackBerry UiApplication is at deactive(non-running or closed) state, then how we listen an incoming message just like PushRegistry of MIDlet.

 

Pls, Pls, help me-----