Namespaces
Variants
Actions

Talk:How to send text SMS in Java ME

Jump to: navigation, search
{{{width}}}
19 Sep
2009
Article Review by Larry101 (20090919)

This article provides a simple code example (and downloadable sample Midlet) for sending an SMS using Java ME. The process of sending an SMS is fairly simple, and should be easily implemented by even beginners. The article shows how sending an sms comprises the following steps: 1. Opening a new Message connection consisting of "sms://" followed by the intended recipient's phone number. 2. Creating the TextMessage object. 3. Setting the "payload text" of the message (the contents of the message). 4. Sending the message using the MessageConnection object. 5. Closing the MessageConnection.

The example shows clearly how to send an SMS using Java ME. It also points out possible problems - such as exceeding the maximum allowed length and the need to send messages using a separate thread to ensure that interaction can continue.

Lakshmishar - How to Receive message from Java ME

Thanks a lot for nokia which I am able to send message from the above the code.

But i have tried in write a code and googled bt i am not able to get code for receiving message code.

It will be more helpful if some one provide a working code.

Thanks in advance.

lakshmishar 08:42, 10 November 2011 (EET)

 
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved