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
Highlighted
New Member
Posts: 1
Registered: ‎05-23-2012
My Device: Blackberry Curve 8520
My Carrier: TIM

Push SMS in BlackBerry Application

I am a developer blackberry and when I'm creating an application that receives data via SMS treats and returns.
The application is working perfectly. But the message comes only when the application is open.
When the app is closed the message goes to the inbox and is interpreted as an ordinary SMS. Since this is not the desired behavior.

 

In J2ME PushRegistry that we have is something like "MIDlet-Push-1: sms://8888, hello.HelloMidlet, *". It filters the messages and run the app giving proper treatment.

 

How would I do to do the same on the BlackBerry?
You have/know of any sample code?
I'm trying to solve this problem for weeks.
I've tried putting the "MIDlet-Push-1: sms://8888, hello.HelloMidlet, *" pointing to my application via rapc did not work.

 

This guys try solve this problem with Daemon Thread. This is the unique way? You have/know of any sample code?

 

http://supportforums.blackberry.com/t5/Java-Development/Push-registry-is-there-a-BB-way/m-p/587107/h...

http://supportforums.blackberry.com/t5/Java-Development/Running-Background-thread-sms-listening-thre...

http://supportforums.blackberry.com/t5/Java-Development/How-to-avoid-creating-two-instances-of-the-a...

http://myhowto.org/java/j2me/22-sending-and-receiving-gsm-sms-on-blackberry-using-rim-apis

 

Observation.: The push has to be via SMS.
Thank you.

 


 

BB JDE 5.0.0
Simulator: BB 8520 5.0.0