How to send and receive SMS in J2ME

Hi friends…! In my previous post I have shown you sending SMS in J2ME. In this post also I am using that sending SMS part again and addition to that I have included receiving SMS part also. I have used separate class and a separate Thread to implement sending SMS functionality. Receiving SMS function I included with in the same class (which extends MIDlet class) as a Regular Inner Class but also in a separate Thread.

As usual let’s take a look what are the new classes and interfaces that I am going to show you today. New classes are,

  • ConnectionNotFoundException
  • PushRegistry

New Interfaces are,

  • MessageListener

There are several things you should know before you run this code in your NetBeans IDE. With your common sense you may already figure out that you need to devices. One mobile for send the SMS and other for receive the SMS. There are two ways that you can complete this task. First I will go with the default requirements that I am using. I have mentioned those configuration that I am using in my very first blog in J2ME category.

If you try to run two instances of same emulator, you will get an error as your output. So what you have to do is first run just one emulator and then change the device in to a different one. You can do that by,

  • Right click on the project
  • Select Properties from the popup menu
  • Select Platform in Category pane
  • Choose a different device from the Device drop down
  • Press OK

Then run the project again and you can see two different devices as in the Figure 1.

Two Devices
Figure 1

The other method that you can use is, by installing new emulator platform. “Sun Java Wireless Toolkit for CLDC Version 2.5.2_01” is the software package that you have to install in to your computer. If you have already installed it follow these steps,

  • Right click on the project
  • Select Properties from the popup menu
  • Select Platform from the Category pane
  • Select the newly installed platform from the Emulator Platform drop down
  • Press OK

Now you do not have to run different devices. You can run two instances of same device. The rest of the things are almost same in any method but I will use the first method to describe what I have done. Let’s move to the Figure 2.

Send SMS
Figure 2

Select New message from the List and press Open command. Then you can see a place to give the receiver’s phone number and the message you want to send. For the receivers phone number you have to give the phone number of other mobile device. You can see that number on the top of the phone (click on the image to see the larger view). After filling the TextFields press the Send command. Then you can see something similar to Figure 3.

Receive SMS
Figure 3

The message you have sent is displaying from the other mobile device. That means you send an SMS successfully and also you have received the SMS successfully. Now jump to the code🙂

As I have mentioned you earlier I am using two classes. First take a look at the class we design our GUI as well as the class which we have extended MIDlet class.

package anuja;

import javax.microedition.lcdui.Alert;
import javax.microedition.lcdui.AlertType;
import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.CommandListener;
import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Displayable;
import javax.microedition.lcdui.Form;
import javax.microedition.lcdui.Image;
import javax.microedition.lcdui.List;
import javax.microedition.lcdui.TextBox;
import javax.microedition.lcdui.TextField;
import javax.microedition.midlet.MIDlet;
import javax.wireless.messaging.MessageConnection;
import javax.wireless.messaging.MessageListener;
import javax.wireless.messaging.TextMessage;

 * @author Anuja
public class Messaging extends MIDlet implements CommandListener, MessageListener {
    private List smsList;
    private Display display;
    private Image newMessageImg;
    private Image inboxImg;
    private Command exitCmd;
    private Command openCmd;
    private int getSelInd;
    private Form newMsgForm;
    private TextField phnNoTxtField;
    private TextField msgTxtField;
    private Command sendCmd;
    private Command backCmd;
    private Alert infoAlert;
    private Image alertImg;

    protected String phnNoStr;
    protected String msgStr;

    MessageConnection receiveCon;

    public void startApp() {
        display = Display.getDisplay(this);

        //-------------Select either New message or Inbox-----------------------
        smsList = new List("Messaging", List.IMPLICIT);

        try {
            newMessageImg = Image.createImage("newMessage.png");
            inboxImg = Image.createImage("inbox.png");
            alertImg = Image.createImage("alert.png");
        } catch (IOException ex) {

        smsList.append("New message", newMessageImg);
        smsList.append("Inbox", inboxImg);

        exitCmd = new Command("Exit", Command.EXIT, 7);
        openCmd = new Command("Open", Command.OK, 4);


        //----------------create New message interface--------------------------
        newMsgForm = new Form("Text message");
        phnNoTxtField = new TextField("To: ", "", 12, TextField.PHONENUMBER);
        msgTxtField = new TextField("Message: ", "", 160, TextField.ANY);

        sendCmd = new Command("Send", Command.OK, 4);
        backCmd = new Command("Back", Command.BACK, 2);

        //-------------------------Receive SMS----------------------------------

        long time = System.currentTimeMillis();
        //System.out.println(time + 1000 * 60 * 60);

        try {
            // The PushRegistry maintains a list of inbound connections.
            // registerAlarm() register a time to launch the specified application.
            PushRegistry.registerAlarm("anuja.Messaging", time + 1000 * 60 * 60);
        } catch (ClassNotFoundException ex) {
        } catch (ConnectionNotFoundException ex) {

        try {
            // "sms://:50000" is the Connection String that we have to give in the Push Registry
            receiveCon = (MessageConnection)"sms://:50000");
        } catch (IOException ex) {

        try {
        } catch (IOException ex) {


    public void pauseApp() {

    public void destroyApp(boolean unconditional) {

    public void commandAction(Command c, Displayable d) {
        if(c == exitCmd){
            // Used by an MIDlet to notify the application management software that it has entered into the Destroyed state
        }else if(c == openCmd){
            getSelInd = smsList.getSelectedIndex();

            if(getSelInd == 0){
                System.out.println("New Message");
        }else if(c == sendCmd){

            phnNoStr = getPhnNoTxtField().getString();
            msgStr = getMsgTxtField().getString();

            new SmsSenderThread(phnNoStr, msgStr).start();

            infoAlert = new Alert("Success...!", "Message sent successfully.", alertImg, AlertType.INFO);
            display.setCurrent(infoAlert, smsList);

        }else if(c == backCmd){

    public TextField getPhnNoTxtField() {
        return phnNoTxtField;

    public TextField getMsgTxtField() {
        return msgTxtField;

    public Display getDisplay() {
        return display;

    public void notifyIncomingMessage(MessageConnection mc) {
        new SmsReceiverThread().start();

        System.out.println("Message received");

    // Regular inner class
    private class SmsReceiverThread extends Thread {

        public void run() {
            try {
                //  Receive Message
                // Eventhough receiveCon is an outer class member, we can access that because this is a regular inner class
                TextMessage txtMsg = (TextMessage) receiveCon.receive();

                // Get the receiving SMS phone number
                String senderTpNo = txtMsg.getAddress();

                // Get the receiving SMS message
                String senderMsg = txtMsg.getPayloadText();

                // Create a TextBox and direct the incomming message to that
                TextBox txtBox = new TextBox(senderTpNo, senderMsg, 160, TextField.ANY);


            } catch (IOException ex) {

In the above source code you cannot see the sending SMS part because I have used a separate class for that. Below is the source code of that class.

package anuja;

import javax.wireless.messaging.MessageConnection;
import javax.wireless.messaging.TextMessage;

 * @author Anuja
public class SmsSenderThread extends Thread {

    private String thisPhnNo;
    private String thisMsg;

    // Get the values from the Messaging midlet class
    public SmsSenderThread(String passPhnNo, String passMsg) {
        this.thisPhnNo = passPhnNo;
        this.thisMsg = passMsg;

    public void run() {

        // Creating the connection
        MessageConnection msgCon = null;

        try {
            // Open the connection with a port
            msgCon = (MessageConnection)"sms://" + thisPhnNo + ":50000");
        } catch (IOException ex) {

        // Create platform tp put a new text message
        TextMessage txtMsg = (TextMessage) msgCon.newMessage(MessageConnection.TEXT_MESSAGE);

        // Set the aircraft (here the SMS) for which payment is received

        try {
            // Send the SMS
        } catch (IOException ex) {
        } finally{
            // If the connection is open...
            if(msgCon != null){
                try {
                    // Close the connection
                } catch (IOException ex) {

Yes you have completed the application. But wait…!

I have used comments to describe the code. Therefore I am not going to repeat it here. There is one thing that you should know when you are using PushRegistry class. We can use PushRegistry in two ways. One is called Static and other one is called Dynamic. If we use that only in program code (simply in the source code) we call it Dynamic. To put the PushRegistry, Static go through the following steps.

  • Right click on the project and go to the Properties
  • Select Application Descriptor from the Category pane
  • Select Push Registry tab
  • Click on the Add button
  • Give “sms://:50000” as Connection String
  • Press OK

The number 50000 is the port that we are providing to receive SMS. So it can be change. Now comes the biggest problem. If you use Static way of Push Registry, your mobile phone will not allow you to install this application.😦 So better go with Dynamic way if you need to install this application in your mobile device.

Try this out and send me a SMS😉 Bye.

About AnujAroshA

An undergraduate in the stream of ICT (Information & Communication Technology). A simple person :)
This entry was posted in J2ME examples. Bookmark the permalink.

97 Responses to How to send and receive SMS in J2ME

  1. desire7696 says:

    i am using all steps but it not working plz help me

    • anujarosha says:

      Yep, sure I’ll help. But you have to tell me what went wrong? Is it about the code or configuration?

      • sowjanya says:

        Hello Sir,

        I am sowjanya implementing project related to mobile applications using j2me.i am not perfect in J2me .can you send step by step procedure for sending and receving sms?i used all steps as u mentioned above.when i send msg to particular number i didn’t get any information on recevier’s side …please help me…..

      • sowjanya says:

        It’s working.Thank you to retrieve data from database using j2me code.can u suggest me?

      • zero says:

        where can i paste the code???

  2. Jeevana says:

    Excellent…! Keep Up the good work..!!! Coding is very clear and working.

  3. AJOSEA says:

    pls help me pls

    my email

  4. Manoj says:

    i have one doubt, for this code should i have internet connection? or is this code can be work without system? plz help i m new to J2ME. . . and i m eagar to know SMS Send and Receive using Mobile internet not computer

    • anujarosha says:

      Hey Manoj,

      This is a simple SMS application witch works in a normal mobile phone also where you do not want any internet connection. What do you mean by “mobile internet” ? To perform the task that I’m talking about in this blog post, don’t want any Internet connection. Did I misunderstood your question?

      Look at the “” method I have used. The “{scheme}:” parameter I have used is “sms://” not “http://”.

  5. El Buho says:

    I’ve used this code but I cant see my message in inbox ? How to see my message in this app ? and How to make save sent message too?

    Thanks before😀

  6. Salman Raza says:

    Hi Can you help me i want to recieve sms in my application when i sent sms to any number from my application

    Pls Help

  7. Laksh says:

    Hi, I am getting java exception error. Can you pls suggest me in eclipse. As I am doing in SMS application for Nokia SDK java in eclipse. If possible pls send me the code to my mail ID.
    “Uncaught exception java/lang/IllegalArgumentException”

  8. Laksh says:

    thanks a lor .. Anujarosh.. will check and let you know

  9. Rehan says:

    Hi, Can you give me the codes for the fig1. (new message). Thnks in advance🙂

  10. Rehan says:

    its working its working🙂 thnks lots dude🙂 u r a saviour😀.. Hey do you have detailed tutorial on bluetooth? My Mobile lecturer did that in lecture class but i did not understand😦

  11. Rehan says:

    Thanks bro🙂 Hey bro can u help me out for my assignment. Actually im working on a media application. I have done several midlets : “MusicGallery”, “Video Gallery”,”ImageGallery” i have also a login midlet, when the password is wrong an alert is displayed telling Login Failed then enables the user to re enter the password and once the good password is entered another alert is displayed indicating Login successfull. When i run my program i want it to display the login first then if the password is correct it enters the menu..How can i do this?

    • anujarosha says:

      Hey Rehan,

      Are you maintaining a RecordStore or just a map like HashMap where you can store username and the password as key-value pairs?
      If you are using RecordStore, you have to use RecordEnumeration to traverse the data collection and check for correct username and password.
      After that you can redirect to the menu midlet.
      This is a simple idea came to my mind. If this is not enough, send me your email. Then I can roughly implement and sent back to you.

      Good luck🙂

  12. Rehan says:

    import java.util.Date;
    import javax.microedition.midlet.MIDlet;
    import javax.microedition.lcdui.*;

    public class Login extends MIDlet implements CommandListener{
    private Display display;
    private TextField username,userpassword;
    public Form myform;
    private Command login,cancel;
    private Image img, imgerror, imgsuccess;

    public Login() {
    myform = new Form(” Access Control”);
    username = new TextField(“Login Name:”, “”, 30, TextField.ANY);
    userpassword = new TextField(“Password:”, “”, 30, TextField.PASSWORD);
    cancel = new Command(“Cancel”, Command.CANCEL, 2);
    login = new Command(“Login”, Command.OK, 2);

    img = Image.createImage(“/finallogin.png”);
    imgerror = Image.createImage(“/error.jpg”);
    imgsuccess = Image.createImage(“/openlock.png”);
    }catch(Exception e){

    public void startApp() {
    display = Display.getDisplay(this);
    try{myform.append(img);}catch(Exception e){}

    public void pauseApp() {}

    public void destroyApp(boolean unconditional) {

    public void validateUser(String name, String password) {
    if (name.equals(“test”) && password.equals(“test”)) {
    } else {

    public void showMsg() {
    Alert success = new Alert(“Login Successful”,” Welcome : test”,imgsuccess, AlertType.INFO);




    public void tryAgain() {
    Alert error = new Alert(“Login Incorrect”, “Please try again”, imgerror, AlertType.ERROR);
    display.setCurrent(error, myform);

    public void commandAction(Command c, Displayable d) {
    String label = c.getLabel();
    if(label.equals(“Cancel”)) {
    } else if(label.equals(“Login”)) {
    validateUser(username.getString(), userpassword.getString());

  13. Rehan says:

    Here is the codes bro. Once the good password is enterd i want the page to go to the MenuMidlet. Please help me out. Thanks in advance🙂

  14. Rehan says:

    Ok thanks dude🙂

  15. Rehan says:

    Hi bro. hope everything fine..hey man thanks loads i got 10/10 for my mobile assignmnt🙂 thanks loads man🙂

  16. Neelu Sharma says:

    hey sir,
    I tried to run your code.But this the error i got:
    at javax.microedition.lcdui.ImageDataFactory.createImageFromStream(), bci=8
    at javax.microedition.lcdui.ImageDataFactory.createResourceImageData(), bci=45
    at javax.microedition.lcdui.Image.createImage(), bci=8
    at Receive.startApp(
    at javax.microedition.midlet.MIDletTunnelImpl.callStartApp(), bci=1
    at com.sun.midp.midlet.MIDletPeer.startApp(), bci=7
    at com.sun.midp.midlet.MIDletStateHandler.startSuite(), bci=269
    at com.sun.midp.main.AbstractMIDletSuiteLoader.startSuite(), bci=52
    at com.sun.midp.main.CldcMIDletSuiteLoader.startSuite(), bci=8
    at com.sun.midp.main.AbstractMIDletSuiteLoader.runMIDletSuite(), bci=161
    at com.sun.midp.main.AppIsolateMIDletSuiteLoader.main(), bci=26
    java.lang.ClassNotFoundException: No MIDlet- registration
    at, bci=39
    at, bci=2
    at, bci=21
    at, bci=2
    at Receive.startApp(
    at javax.microedition.midlet.MIDletTunnelImpl.callStartApp(), bci=1
    at com.sun.midp.midlet.MIDletPeer.startApp(), bci=7
    at com.sun.midp.midlet.MIDletStateHandler.startSuite(), bci=269
    at com.sun.midp.main.AbstractMIDletSuiteLoader.startSuite(), bci=52
    at com.sun.midp.main.CldcMIDletSuiteLoader.startSuite(), bci=8
    at com.sun.midp.main.AbstractMIDletSuiteLoader.runMIDletSuite(), bci=161
    at com.sun.midp.main.AppIsolateMIDletSuiteLoader.main(), bci=26

    Help me

  17. Girija Deshmukh says:

    hey hi i tried ur code but its not creating another emulator nd i install this in Nokia E5 its giving alert msg “sent successfully” but on specified no that msg hasn’t received so what to do pls help me…
    should i install code receive msg also????
    pls help me

    • anujarosha says:

      Hi Girija,

      You have to create the second emulator manually. Please read the second bullet points block starting from the “Right click on the project…”.

      For your second point; No, you no need to have code receiving message in the other phone to receive the SMS that you sent from this code snippet I have written. I have tested this application with a Nokia 5700 phone and it is working. In my code, I have only checked whether the message has sent. I haven’t checked whether it is delivered. But I didn’t face the problem you have faced. So please check it again and tell me the updates.

      Good luck…!!!

  18. Girija Deshmukh says:

    hey thanks for rply nd sry too because some minor mistakes i had faced that prob but now its working thanks alot nd will u help me for sending 1 msg to more than 1 nos. nd can we make textbox nd textfield on 1 form coz textbox occupies whole form so pls help me for this also. thanks in advance

    • anujarosha says:

      Hey Girija,

      You are welcome.

      For your request to “sending one message to several numbers…”, at the moment I don’t have the required code you want. If I get time I will test it and send it to you. I don’t think that is much difficult. I guess we have to loop SmsSenderThread for the numbers that we want to send. Well I will tell it exactly after I got time to implement it.

      For your second question, NO, you can’t have TextBox and a TextField in one Form. TextBox and Form are child classes from the Screen class where TextField is child class of the Item class. So under normal circumstance, you can’t put a TextBox or a List, with in a Form. Go through the documentation if you are not clear what I said🙂

  19. Girija Deshmukh says:

    k thanks and i have one more doubt pls give me solution, m using netbeans 7.0, assume my project is in F:drive nd text file is in same project in src folder’s package folder then its working properly using InputStream and getResourceAsStream(), but if my text file will locate in E: or C: drive in another folder then how to get that file from that folder.
    I saw documentation nd it saying u must required root value like CFCard/, SDCard/, MemoryStick/, C:/, / and for text File located in C: drive i tried C:/ root value but its giving error
    “ Root is not accessible” so what to do
    what are these root value? what does it means? nd why we require it? and m very weak in file handling

  20. Rahul Kumar says:

    I run source code of send and receive SMS the message in eclipse only run the second try to run the Run as show the Run Configuration plz sir tell me what to do ?
    and * Right click on the project
    * Select Properties from the popup menu
    * Select Platform in Category pane
    * Choose a different device from the Device drop down
    * Press OK
    * Right click on the project and go to the Properties
    * Select Application Descriptor from the Category pane
    * Select Push Registry tab
    * Click on the Add button
    * Give “sms://:50000″ as Connection String
    * Press OK

    this Option not find eclipse plz tell me full step what to do?
    and notified in my Emailid :>

  21. anujarosha says:

    Hi Girija,

    If I get your question correctly, the answer is, you have to add the file path in to your project. Right click on your project, go to properties then go to Libraries and Resources sub menu. There you can add the folder which contains your file. But I think it is better if you can add that file in to your project folder as a Resource. Make sure you have the permission to access the file in the normal circumstance. Are you running on a Linux OS? If so check the permission to that relevant file and the containing directory by using “ls -laF” command. You have mentioned that you can read the file by using InputStream… So I no need to give the code for that🙂

  22. Rahul Kumar says:

    hey I send the message but I can’t receive Can you help me how to receive and the sending sms to save send Item.

    plz code send my id.,

    • anujarosha says:

      Hey Rahul,

      Have you configured Push Registry correctly? Check the SmsReceiverThread carefully and check the port that you have used are free and not used by any other program.

      Please send your question with details in next time and also it is better if you ask about the coding errors not the configuration. I have clearly describe the configurations in my post. Hope you have read the full post clearly.

  23. Rahul Kumar says:

    hi I send message but how can to see the receiving message to the second emulator my first emulator number is 5550000 and second emulator 5550001 please the fully example to get the message second emulator as soon as I need in my project the code send my id is :

    • anujarosha says:

      Hey Rahul,

      Answer for your question is already in the post. Please read the post before you ask questions. I have clearly explain how to start two emulators and also see the Figure 2 to understand how to give other phone number. When the answer is already in the post, what else do you want me to explain again🙂

  24. Md. Motalab hossain says:

    hi thank you.
    when i Run this Program. show error this below messege.
    pls solv this.
    C:\Documents and Settings\mhossain\My Documents\JavaMESDKProjects\sms test\src\hello\ error: cannot find symbol
    new SmsSenderThread(phnNoStr, msgStr).start();
    symbol: class SmsSenderThread
    location: class HelloMIDlet
    1 error

    • anujarosha says:

      Hi Motalab,

      SmsSenderThread is a class. That is the second code snippet in the post. Hope you have add that class too. We pass two parameters to that class. Those are the telephone number and the message that we want to send. In UI we have two places to input those values. Just check those things that I have mentioned. Debug the code and check whether the values are passing or not. Keep me updated if it is not the issue.

      Good luck…!!!

      • Md. Motalab hossain says:

        thanks for guide, but another problem I faces when i install this program in my mobile one message show
        java ap not supported
        Please guide me how i solve this problem

      • anujarosha says:

        Hey Motalab,

        It may be because of the CLDC and MIDP versions. Check what is your mobile phone support and build the app relevant to that.

      • JAA says:

        how can i add the other class> should i create another form to add that class?

  25. Md. Motalab hossain says:

    Thank You, it’s done. It Installed Successful.

  26. Md. Motalab hossain says:

    Hi Anujarosho,
    I Faces another Problem When I Send Message another Mobile But receiver Mobile Message not Displayed. Please Guide me how i solve this problem.

  27. endris says:

    hi i faced a problem “conflicting items” says if i choose yes the phone will be restart(switched of) what is the cause ,thank u

  28. Ankit Parmar says:

    Hey… I am new in j2me…and i have apply this code in netbeans. and i have no Inbox methods so cant open inbox so plz help me..plz given me a inbox methods code.

    Thanking you,
    Ankit Parmar.

  29. nady5730642 says:

    How to create Inbox?

  30. nady5730642 says:

    How to code for SMS Inbox?

  31. Abhishek Upamanyu says:

    hello… i am a beginner in this course and i have to create an application which has a form having textfield,datefield and choicegroups…i have created the form…but i also have to send the contents of this form to another mobile in the form of an SMS. My query is do i have to create a mobile database or record storage and then send the SMS or it can be done by any other simple way….i can send you my code if you want….i really need help on this.

  32. lama says:

    I am sowjanya implementing project related to mobile applications using j2me.i am not perfect in J2me .can you send step by step procedure for sending and receving sms?i used all steps as u mentioned above.when i send msg to particular number i didn’t get any information on recevier’s side
    please give me execution code in netbeans environement for send and receive sms…
    …please help me….

    • Abhishek Upamanyu says:

      I faced the same problem, but this happens only when at receiver end i am using a smart phone or android phone….that too only sometimes. but the application works fine when both are java enabled mobiles like nokia phones.

      • anujarosha says:

        Thanks Abhishek,

        This is what I expect; “sharing knowledge”. I may not able to reply for all comments. If someone know the answer he/she can also contribute.

        Thanks again🙂

      • Abhishek says:

        hello sir,
        Recently I tried to test the application which I created using the above tutorial with new Netbeans environment 7.3.1 but its not working now.I don’t understand what has changed that the same application which was running quite well 6 months before is not working anymore.
        Please help me Sir, I need to show a demo of that application

  33. rahul says:

    hey thanks for the knowledge you shared .but i think this only for sending sms from application to application right then is there a possibilty of sending sms from default messanger to application

  34. MohsenSaleh says:

    tanks your coding is so beautiful.

  35. Prateek Srivastava says:

    May u tell me please,
    1. If i implement inbox feature, then if some body sends me message then it will show in my application’s inbox and mobile phone’s default message inbox both.
    2. as u have mentioned,port number 50000,is this port number will occupy a port number in my mobile phone or at my Laptop.

  36. Menpara Bhargavi Dhirajbhai says:

    i don’t understand your coding please teach me?

  37. krishnan v says:

    Sir I require code for j2me registration and message passing between 2 phones in j2me

    • zemen says:

      Dear sir, I have tried to run this code but it is not working well, when i run it the emulator does not display the New message and Inbox options so i am not able to test it.I working with Netbeans 7.1 . I don’t know what is the problem.Please help me!

  38. zemen says:

    Dear sir, I have tried to run this code but it is not working well, when i run it the emulators does not display the New message and Inbox options so i am not able to test it.I am working with Netbeans 7.1 . I don’t know what is the problem.Please help me!

  39. vinita sawant says:

    sir… i am doing a project name “friends an family locator” in java me. i am done wid al my GPS module. but the thing i need to share a database from where i can retrieve my friends coordinates. i have created database on web host server but in java me i dunno wat will be the code to.insert data in table…. plzzz can you help wat shud be done

  40. MOHSEN says:

    i use your code to send and receive sms in mobile app…
    and i want receive sms in our mobile app that sent by AT command in c# application
    can you help me(know) that how to send sms with AT command that my app able to receive it?
    plz replay me to below email:

  41. Satadru Das says:

    Hey I want this code to be sent in an encrypted way using elliptic curve cryptography. For that i need to import java.math.BigInteger class, but I am facing trouble in doing so as I think this class is not supported for MIDP. Can you suggest me any other ways.
    P.S – I am not using the bouncy castle but an encryption using my own package.

  42. shalini gour says:

    i m a beginner in this J2ME technology and i have to submit a mobile application that is sending an d receiving msg,,, could you pls send me complete procedure which shows that how to run this code how it should be installed in mobile phone ,, i m using NOKIA E71, can this code run on my phone pls help email address is

  43. shalini gour says:

    i run this code and i m getting error at the time of execution.
    ant -f C:\\Users\\shalini\\Documents\\NetBeansProjects\\anuja -Ddist.jad.url=http://localhost:8082/servlet/org.netbeans.modules.mobility.project.jam.JAMServlet/C%3A/Users/shalini/Documents/NetBeansProjects/anuja/dist//anuja.jad run
    Deleting: C:\Users\shalini\Documents\NetBeansProjects\anuja\build\.timestamp
    Deleting directory C:\Users\shalini\Documents\NetBeansProjects\anuja\build\preprocessed
    Deleting directory C:\Users\shalini\Documents\NetBeansProjects\anuja\build\compiled
    Deleting directory C:\Users\shalini\Documents\NetBeansProjects\anuja\build\preverifysrc
    Deleting directory C:\Users\shalini\Documents\NetBeansProjects\anuja\build\preverified
    Deleting: C:\Users\shalini\Documents\NetBeansProjects\anuja\build\
    Deleting: C:\Users\shalini\Documents\NetBeansProjects\anuja\dist\anuja.jar
    C:\Users\shalini\Documents\NetBeansProjects\anuja\nbproject\build-impl.xml:311: The following error occurred while executing this line:
    C:\Users\shalini\Documents\NetBeansProjects\anuja\nbproject\build-impl.xml:1090: Unable to delete file C:\Users\shalini\Documents\NetBeansProjects\anuja\dist\anuja.jar
    BUILD FAILED (total time: 31 seconds)
    pls help me.

  44. shalini gour says:

    code has been run successfully but when i select messaging it asks for updates than press yes.,,,,,means it shows that inbox and new message and abruptly switches to this updates message it shows msg like “anuja wants to receive automatic updates from the network , receiving updates may result in charges, is it ok to receive automatic update , yes or no”!!!!! even if i press yes on the emulator it does not goes to the new message window,,,,,, pls pls pls sir help me its my assignment in college,,,, pls help me very soon..

    • abhishek says:

      are you facing this problem in the code given by anuja sir..or you are facing problem in the code that you modified?

      • shalini gour says:

        thanks abhishek for reply,,i m running the same code,, now my code is running ,msg is being sent but i dont know where the msg is being received means it is not showing whether msg is being received or not,,

  45. Samantha Igbokwe says:

    hey anu, great job. you’re really gud. pls could you show how to store the messages and also how to encrypt. thanks. pls do get back to me soon. thanks a whole lot.

  46. sreekanth says:

    In my application i have to get both the mobile numbers from dual sim phone?

    Is there any way to get both the numbers? Please help it is very important for me?

  47. maulana says:

    hi. I need app to forward sms to email like stealthsms on android, is it possible to build on j2me.
    email me please, I really need that and thank you.

  48. Sunny says:

    Hi Bro!!
    your code is working awesome.
    Can you help in creating the functionality for the inbox.

    • Abhishek says:

      Hi dude,
      Can you tell me the configuration you have used like which jdk version and netbeans version? Because I am running the same code in latest netbeans version and the code is not working.But I used the same code earlier with an older version and it was working fine that time.

  49. Abhishek says:

    Thanks dude.Now I will try once my code with this configuration.If you used any other setup do tell me because its been a while since I used this.

  50. Sunny says:

    If you have you send the code.. I will finish the project and will mail you whole project.

  51. zero says:

    hey bro,,,this my project in school,,, i already created an emulator,,,but i dont now where can i put the code,,,,,,,plzzzzz,, help me..!!!!!

  52. mahlet says:

    hello sir .i am doing a project that will send and receive a sms .but the port should not be sms that means it must be free or use wifi…so pls pls help me !!!!!!!!!!thanks

  53. Vignesh says:

    hey such a great job.. keep going on friend🙂

    I’m satisfied with this.. Also i got what i need .. thanks a lot ..

  54. Tanjina Thakur says:

    Respected sir,
    i am making an j2me based app that is auto dial-up sms service that will do for you such works like on a single key press an emergency msg will sent to any specific emergency phone no.that you have saved with an emergency SMS.
    The work will be on canvas …how to make it (in the back end the sms is being send and if required any notification is also being come to your mobile phone).

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s