Simulating SMS?

I'm working on an application that needs to send SMS messages.  Is there a way to make the Simulator say you if you sent a text?  How do you know when it works?

Thank you

This should help you:

http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/How_To_-_Send_SMS_text_messages_between...

may be also useful:

http://supportforums.BlackBerry.com/T5/Java-development/simulate-phone-call-amp-message/m-p/138303#M...

Tags: BlackBerry Developers

Similar Questions

  • Runtime Exception while simulating sms send device/network CDMA

    I'm trying to simulate the sending of a sms of my application. Since the device during the simulation simulates CDMA network, I use DatagramConnectionBase to send sms.

    Whenever my application tries to send a text message it throws JVM 104 error: Runtime Exception.

    I use Eclipse to develop the application and we tried to simulate this on different Blackberry JDE pluggins, including v5.0, v4.7.0, v4.6.0 and the result is always the same. Just this part crashes me to begin to test my application.

    Thank you.

    The section of the code of the application that sends sms is:

    DatagramConnectionBase _connection = null;
    DatagramBase _sms = null;
    Try
    {
    _Connection = (DatagramConnectionBase) Connector.open ("sms: / /: 0");
    _sms = (DatagramBase) _connection.newDatagram (_connection.getMaximumLength ());
    _sms.setAddress ("sms: / /" + _mobileNumber);
    _sms. Write (_smsContent.GetBytes (), 0, _smsContent.getBytes () .length);
    _Connection.send (_sms);
    _Connection.close ();
    }
    catch (IOException e)
    {
    System.out.println ("' sending Txt Message on CDMA network Exception:" ")
    + e.getMessage ());
    }

    OK... I found the way to make it work.

    Thank you all.

  • Send SMS to the Simulator

    Hey,.

    I have an application that uses 10.3 specfic API and I need to send SMS messages to the device Simulator to test some features, but as far as I can see the Simulator controller is not supported for this... Is there something I can do? I only have one device that I use my driver all day and I don't want to use the sdk gold on it

    Thank you

    Daniel

    The problem is that the sms app is not installed in the Simulator, if you need a device to do everything related to sms.

  • How to receive and send SMS in the emulator or Simulator?

    Hello

    I am newbie to blackberry. I want the code to send and receive SMS listener in the emulator or Simulator.

    the research would have helped you a lot here.

    http://supportforums.BlackBerry.com/T5/Java-development/different-ways-to-listen-for-SMS-messages/TA...

    http://supportforums.BlackBerry.com/T5/Java-development/use-SMS-to-notify-an-application/Ta-p/444965

    in particular with regard to the Simulator:
    http://supportforums.BlackBerry.com/T5/Java-development/simulate-phone-call-amp-message/m-p/138303?q...

  • How to send fake sms on own Simulator

    I want to send fake sms on own Simulator. How can I achieve this. Please give suggestion...

    not possible, you must run the second Simulator.

  • Question red watch SMS Simulator

    Hi all, using 2 9700 simulators under version 5 to try and test a SMS listening program. This used to work fine, but now whenever I have try and send an SMS from 1 Simulator to another, I get a red clock next to the SMS sender and I never get anything else. Like I said it worked very well. The 2nd Simulator runs from a different location than iis used during debugging. I've played around with the SMS settings (currently packs turns to 7-bit encoding) with no joy. Also shot and manage connections without joy. Mobile network take their flight simulator and data services are turned on.

    Can someone tell me what I should do to fix this please because the reset does not work either. Thanks a lot for any assistance.

    Try resetting the simulator by running the clean.bat file located in the directory of Simulator.

    If this does not help, make sure that you do not have any firewall software that blocks the ports used to send and receive SMS messages.

  • If the Simulator can send an sms meg to another Simulator or send an sms to itself

    I want to try a few test blackberry sms, but every time I use real device to test sms, how to use the Simulator to solve it, thanks

    Please consult with the client and the smsdemo application server provided with the BlackBerry JDE.  They show how the BlackBerry Simulator can be used to address SMS messages.  You can also use 2 BlackBerry simulators to simulate the sending and receiving of SMS messages.  See this post for more information.

    http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&message.ID=15778&query.ID=30...

  • Cannot receive text message from Simulator BB8310

    I was able to send a text message from the Simulator, but I don't receive it on my BB 8310... I can see all the text messages that I sent to the screen in the Simulator.

    I installed the following (I guess that I have installed the correct versions):

    4.5.0 blackBerry Smartphone simulators

    Eclipse-SDK - 3.5 - win32

    JDK1.6.0_23

    can someone help me please? I am a novice in the development of BB...

    Thank you!

    Are you referring to a SMS?  Unable to send or receive SMS messages between a real Smartphone BlackBerry and the BlackBerry smartphone Simulator.  The Simulator doesn't have any connection to a cellular network.

    You can send and receive text Messages between 2 BlackBerry smartphone simulators.  This article explains how.

    Send SMS text messages between two BlackBerry Smartphone simulators

    http://supportforums.BlackBerry.com/T5/testing-and-deployment/send-SMS-text-messages-between-two-bla...

  • How to test the SMS listener using 2 emulators in SDK5 running Windows 7

    Hi all. Writing a SMS listener I want to test. But can someone please pass me how I can configure the SDK BB 5 (not the Eclipse plugin) running on Windows 7, so that I can send a test SMS from an emulator to another to see what is happening in the debugger. Thank you so much as always.

    Found answer in another post from Kanaksony. His response has been to make the source and destination for even 1 emulator ports. His post was:

    You need to sms-source port and sms-destination ports even in Simulator. Go to JDE-> Edit-> preferences-> tab-> port sms-source Simulator: 21316 and port destination sms: 21316

  • incoming SMS listener test

    Hi all. Writing a listener SMS coming that I want to test. But can someone please pass me how I can configure the SDK BB 5 (not the Eclipse plugin) running on Windows 7, so that I can send an SMS to test an emulator to another to see what is happening. Thank you so much as always.

    Found answer in another post from Kanaksony. His response was to use 1 emulator with the following:

    You need to sms-source port and sms-destination ports even in Simulator. Go to JDE-> Edit-> preferences-> tab-> port sms-source Simulator: 21316 and port destination sms: 21316

  • Problem with SMS notification

    Hi all

    I wrote an application that should be listened to SMS. But the SMS arrived, nothing happened. Why?

    I run the following code with the debug (BlackBerry 9000 Simulator) mode, and I know that the application is not awake receive mode (after receiving SMS the line after the red line must be called).

    This is the code I wrote:

    DatagramConnection dc = null;
    try {}
    DC = (DatagramConnection)Connector.open("sms://" ");
    for(;;))
    {
    Datagram d = null;
    d = dc.newDatagram (dc.getMaximumLength ());
    DC. Receive (d);
    ubyte bytes [] = d.getData ();
    Address of string = d.getAddress ();
    String msg = new String (bytes);
    System.out.println ("received text SMS of" + address + ":" + msg);
    }
    }
    catch (Exception e) {}

    I thank.

    OK I have the solution.

    The Simulator is defective!

    I tried with a real device and it works.

    Thank you all.

  • Not able to send an sms message progrmarically...

    I am writing an application that sends a text message to someone... the application successfully, the SMS (no exception is thrown) and it works perfectly in the Simulator, but when the app running on my everything and he do send a txt message to a storm the strom (the phone which supposed to receive the response) never gets the message text... heres the code

    // NOTE THE NUMBER IS IN THE FORM "sms://xxxxxxxxxxx"public MessageSenderThread(String number, String message)
        {
            this.number=number;
            this.message=message;
        }
        public void run() {
            MessageConnection mc=null;
            try {
                System.out.println("Sending info to :"+this.number);
                mc = (MessageConnection)Connector.open(this.number);
            } catch (IOException e) {
                System.out.println("Error openeing sms sender");
                return;
            }
    
            Message message = mc.newMessage(MessageConnection.TEXT_MESSAGE, this.number);
    
            TextMessage textm = (TextMessage)message;
    
            textm.setAddress(this.number);
            textm.setPayloadText(this.message);
            try {
                mc.send(textm);
            } catch (InterruptedIOException e) {
                System.out.println("Error sending message");
                return;
            } catch (IOException e) {
                System.out.println("Error sending message");
                return;
            }
            try {
                mc.close();
            } catch (IOException e) {
                System.out.println("Error closing sms");
            }
    
        }
    

    Check out these articles.  Note that the Tour is CDMA.

    Different ways to send SMS messages
    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800451/800563/What_is...

    Known issues - impossible to send SMS messages using BlackBerry smartphones that work on CDMA Networks
    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800451/800563/Known_I...

  • 9550 java programs Simulator does not

    I have eclipse Build id: 20100218-1602

    with BlackBerry_JDE_PluginFull_1.1.2.201003212304 - 12.exe installed.

    using the 9550 Simulator.

    I brought samples of BB in my workspace and then tried some on my 9550 Simulator, but all I get is the spinning hourglass and then a black screen.  If I click on the screen, it goes to the main BB screen with messages, e-mail, sms, contacts, etc..

    The Simulator, I also tried file > load Java program and chosen a cod file that is made.  I will get a stopwatch of spinning and then be returned to the main screen of BB again.

    The apps that I tried: HelloWorldDemo and GPSDemo.

    Any ideas on what I could do to fix this or help out more?  I'm surprised that I get no error of sorts on the BB.  Are there permissions or something that needs to be fixed? For HelloWorld? hahaha!

    Have you tried to check the download folder to see if they appear in?

  • How to run 2 simulators on a PC to send/receive SMS messages?

    I installed 9670, 9630, 9899... simulators on my PC. I would like to run simulators of CDMA and send SMS messages to the other. Is this possible? If so, how?

    Thanks for your help!

    Sherry

    Check these:

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800792/801083/How_To _...

    http://supportforums.BlackBerry.com/T5/testing-and-deployment/send-SMS-text-messages-between-two-bla...

    http://supportforums.BlackBerry.com/T5/Java-development/receiving-SMS-messages-on-Simulator/m-p/5257...

    I hope they help...

  • Running the background (sms listening thread) connected to the GUI (another point of entry) application thread

    Hi, I'm new to the development of Blackberry, I read everything on the application running at startup and have a different point of entry for this application. I still need help with my application

    I use BB JDE 4.7

    Simulator: BB 9530 4.7.0

    I'm developing an application of SMS. (extends UiApplication)

    1) there is a thread that listens for incoming messages

    2) there is a wire which is a SMS sender

    3) there is a main screen and two full screens. for example, when the user clicks a button in one of the screens full... I send you a message

    (4) when a message is received, based on the content of the message I push either a full screen

    (5) I have, all the wires and screens as the class internal to the main class that extends from the UiApplication.

    I got the basic features. I need help making that demand the application of autostartup

    (1) I need to start listening to the sms thread when the BB phone starts

    (2) I need to have the application icon in the applications screen as another entry point for the application (only for the GUI), and the listening thread must remain active in the background.

    (3) when an incoming message is detected, the application GUI should be brought to the foreground (if it isn't already forground) after posting a popup (instead of bring the application to the foreground, is it better to display a flashing icon in the status bar of the home screen blackberry and perhaps global popup)

    (4) when the GUI of the application part is closed, I need to stop the sms sending thread, and when the system shuts down, I need to stop the listening thread.

    Please help me guys... I have read many articles and discussions regarding the automatic start-up of applications, another point of entry, the # of background threads...

    but I couldn't find how to implement my needs.

    (1) should I need to create two different projects (applications [GUI thread, a sender] and one for the listening thread)? or I can achieve in single application?

    (2) should I have to sign in the background thread to the GUI app? If so, how?

    (3) it is necessary to use the RunTimeStore object? If so, I don't know how I can bring to the foreground the application GUI of the background thread.

    (4) if I have to stop the thread of listening by overiding onExit() method, the important question I have is, if the onExit() method is only for applications that extends from the Application class and not for the UiApplication class?

    (5) if I should have two projects (one main and the other as a spare point entry), which project should I do as "autorun at startup" and a "system module".

    As I need to have the background still running thread when the GUI application is active. I don't know how I do.

    Hello world...

    I reached my needs thanks to a single application. I used an other entry point.

    To refer to chk my other post

    http://supportforums.BlackBerry.com/T5/Java-development/how-to-avoid-creating-two-instances-of-the-a...

Maybe you are looking for