Partager via


Sending an SMS to yourself in the emulator

At the APAC MDC last week, I had an opportunity to discuss developer tips with the audience in Syndey. One tip in particular that was a surprise to most of the audience but potentially very useful is the fact that you can make phone calls or send SMS messaages to yourself in the emulator (providing you are using a Smartphone or PPC emulator with Virtual Radio support). The phone number for the emulator is “+14250010001“. This is really handy for testing SMS interception or how your apps responds to an incoming phone call, etc. Just send an SMS to +14250010001! Give it a try - let me know if you have any problems.

[Author: PaulaT]

Comments

  • Anonymous
    April 27, 2004
    It's also a great way to freak your buddy out who's working on the emulator and doesn't know about this feature.

    Write a little app that will place a call to the emulator with a time delay before it places the call, deploy it when he's not looking and start it. Wait your prescribed timeout and watch as he tentatively answers the call from his emulator :-)

    You should definitely read the disclaimer for this post!

    James

  • Anonymous
    April 27, 2004
    Awesome tip from PaulaT on how to send SMS yourself in the emulator. Hey guys how many more you have hidden in your sleeves? Bring it on!

  • Anonymous
    April 28, 2004
    This is a really great trick that I didn't know about. When you're writing an application working in the emulator, you can send yourself an SMS. This will be really useful for testing applications that intercept text messages. From the emulator, send a message to +14250010001. You have to use the image with the virtual radio, of course. This works for both Smartphone and Pocket PC Phone Edition.

  • Anonymous
    May 26, 2004
    ok, but on the device??

  • Anonymous
    May 27, 2004
    See here for how to fake events on the device:
    http://msdn.microsoft.com/library/en-us/dnppcgen/html/callevents.asp

  • Anonymous
    May 27, 2004
    I have try, on the emulatore it work but on my Qtek I receive an error when I try to send the sms that says not found method... Can you tell me the reason?

  • Anonymous
    June 24, 2004
    This is all well and good to send an sms but is there any way to actually read the sms message off the emulator? I am trying to do some research on intercepting/reading the messages without much luck!
    Any help would be appreciated greatly.

  • Anonymous
    June 25, 2004
    If you have the Windows Mobile 2003 sdks check out the MapiRule samples included in them:

    <systemdrive>Program FilesWindows CE Toolswce420SMARTPHONE 2003SamplesWin32Mapirule

    <systemdrive>Program FilesWindows CE Toolswce420POCKET PC 2003SamplesWin32Mapirule

  • Anonymous
    August 01, 2005
    Thats really useful. I tested sending sms, though I don't know how to call emulator from emulator. I tried it but call fails probably as we are calling ourself. James can you share that code of yours to freak out your buddy :-)

  • Anonymous
    August 19, 2005
    Fine for the SMS interception with the MAPIRule Sample, but how can we intercept an incoming phone call ?

  • Anonymous
    August 31, 2005
    I too am trying to discover how to intercept an incoming phone call rather than an SMS message.

  • Anonymous
    September 06, 2005
    I start the emulator and SendCallEvents. The program connect with the emulator, all its ok. When I send a sms or make a call all looks ok in SendCallEvents but nothing in the emulator. Anybody knows why?
    Thanks.

  • Anonymous
    September 16, 2005
    After our talk on the Device Emulator, a number of people asked me about the phone numbers I used in...

  • Anonymous
    February 25, 2006
    I run the windows mobile 5.0 emulator and the sendcallevents application. when i try to place a voice call on the sendcallevents application to the number +14250010001 I get the error Missing DAta Store file. any ideas?

  • Anonymous
    May 10, 2006
    Hi this is a great app.. have seen it.. can some one plz give me the code snippet or a link where i can find it..

  • Anonymous
    May 29, 2006
    The comment has been removed

  • Anonymous
    June 23, 2006
    Hey, you guys are talking about intercepting an sms, I want to know if my messages are being intercepted by someone, either from my phone or theirs. how can I do know that?

  • Anonymous
    January 10, 2007
    The comment has been removed

  • Anonymous
    February 02, 2007
    its very nice thanq!!! can i send sms to other emulator in another pc.... i will be very thankful if i receive reply form u

  • Anonymous
    March 20, 2007
    I am also expecting the same. Is there any option to send SMS from one emulator to another? Thanks in advance

  • Anonymous
    April 08, 2007
    I'm using VS2005Sp1+WinMobileSDK6. I used the Device Emulator Manager to connect to Smartphone 2003 SE Emulator and (in 2nd trial) also Pocket PC 2003 SE Emulator. I then ran the SendCallEvents.exe to send test sms'es. However, I kept getting the error message "Missing Data Store Files". Not surprisingly, the emulators got nothing. I also tried the brand new Windows Mobile 6 SDK Standard/Professional Emulators, but no luck either. What's the matter? "Creating Call Events in an Emulation Environment" at http://msdn2.microsoft.com/en-us/library/ms838145.aspx said it was using an emulation environment with virtual radio support. Would the described error imply that none of the VS2005Sp1+WinMobileSDK6 emulators has virtual radio support? Or simply the SendCallEvents.exe program itself is already out-dated?

  • Anonymous
    April 09, 2007
    One question..Please help..Can I connect and get data from webservice while incoming call is in ringing mode only?

  • Anonymous
    May 28, 2007
    I have tried ( 14250010001 ) this no to simulate incoming call , but it is connecting as a normal call.... Please tell me how can I simulate incoming call..

  • Anonymous
    June 24, 2007
    Hi, I am able to send and intercept sms messages on the emulator.How do i do it on the actual device. I have HP iPaq and i tried to do so with no success. Do i need to add certificates and how do i obtain this. Thanks in adv.

  • Anonymous
    August 22, 2007
    Hi ,want to send an sms to emulator itself ,but it gives me error like "Wireless radio must be attcahed to use phone ",So what should i do to solve this problem. Thanks in advance.

  • Anonymous
    September 05, 2007
    hi to do this must i write any form of a code

  • Anonymous
    September 15, 2007
    Can i send an sms to emulator using a peekamo device. Im thinking i have to write a really complex form of code for this if it can even be done.

  • Anonymous
    February 21, 2008
    Hi.... I want to send an sms to other emulator using my emulator.. so can any one help me in this... if u have any information about this plz send to my id sumankanth@gmail.com plz send if u have any idea....

  • Anonymous
    July 08, 2008
    Many Thanks Krab, Useful for me very much.

  • Anonymous
    August 28, 2008
    This does not appear to work in Mobile 6.... ?

  • Anonymous
    October 22, 2008
    When I was trying to send sms, it always throws exception like error sending sms. Can anyone help me out ??

  • Anonymous
    November 06, 2008
    When i tried to do this it asking for for assembly reference. Can i know which references are need for this?