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
Contributor
Basit781
Posts: 32
Registered: ‎02-22-2011
My Device: Not Specified
Accepted Solution

How to receive sms inside black berry application

Hi to all, Hope you all will be fine. I want to send and receive sms from my application. But i want that when sms come then instead of going to inbox it comes inside my application. Please tell me how can i do this. In java ME I have done this but now i want to do it in black berry . In Java ME you set listener for incoming sms to your main MIDlet class. In black berry in which class I supposed to set listener for incoming sms. Please help. Thank you.
Please use plain text.
Contributor
Nibedita
Posts: 22
Registered: ‎04-06-2011
My Device: 9800
Please use plain text.
Contributor
FlyingHigh
Posts: 21
Registered: ‎06-02-2011
My Device: BBold 9780

Re: How to receive sms inside black berry application

There are several posts on this subject and what I have found is that you must send to a port number in order to avoid it appearing in your inbox.  One issue with Port numbers that I have found is that some networks may not allow sending of messages on certain Ports, so you would need to check and see if it works on the System that you are testing.  By sending to a port you will avoid it appearing in the inbox on the receive side and then sending will not appear in the sent folder as well.

Please use plain text.
Contributor
Basit781
Posts: 32
Registered: ‎02-22-2011
My Device: Not Specified

Re: How to receive sms inside black berry application

I have done it. Thanks :smileywink:
Please use plain text.
Contributor
herahadi
Posts: 27
Registered: ‎02-20-2013
My Device: 9900

Re: How to receive sms inside black berry application

could you please share your complete code? i have the same problem and can't get it solved

Please use plain text.
Developer
peter_strange
Posts: 19,608
Registered: ‎07-14-2008
My Device: Not Specified

Re: How to receive sms inside black berry application

[ Edited ]

Edit:  Welcome to the forums.

 

Try searching when you have problems like this - see the Search box near top right. 

 

Also see this:

http://supportforums.blackberry.com/t5/Java-Development/Different-ways-to-send-SMS-messages/ta-p/445...

Please use plain text.
Contributor
herahadi
Posts: 27
Registered: ‎02-20-2013
My Device: 9900

Re: How to receive sms inside black berry application

i have read your link and another source but i dont know where to place that code, i'm prety new to bb development. i want the message i receive appears on my screen. please help with detail code

Please use plain text.
Developer
simon_hain
Posts: 16,207
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: How to receive sms inside black berry application

please create a new thread for your issue.
you can link to relevant threads.
----------------------------------------------------------
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
Please use plain text.