Welcome to MSDN Blogs Sign in | Join | Help

Windows Mobile Team Blog

The Official Windows Mobile Team Blog
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]

Posted: Tuesday, April 27, 2004 3:00 PM by windowsmobile
Filed under:

Comments

James Pratt [MSFT] said:

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
# April 27, 2004 5:27 PM

TrackBack said:

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!
# April 28, 2004 7:38 AM

TrackBack said:

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.
# April 28, 2004 12:48 PM

luigi said:

ok, but on the device??
# May 27, 2004 5:43 AM

Robert Levy said:

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

luigi said:

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?
# May 27, 2004 12:09 PM

Paula said:

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.
# June 24, 2004 11:35 PM

Jidesh Veeramachaneni said:

If you have the Windows Mobile 2003 sdks check out the MapiRule samples included in them:

<systemdrive>\Program Files\Windows CE Tools\wce420\SMARTPHONE 2003\Samples\Win32\Mapirule

<systemdrive>\Program Files\Windows CE Tools\wce420\POCKET PC 2003\Samples\Win32\Mapirule
# June 25, 2004 8:04 AM

Sachin Palewar said:

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 :-)
# August 2, 2005 4:22 AM

de la Barre Christophe said:

Fine for the SMS interception with the MAPIRule Sample, but how can we intercept an incoming phone call ?
# August 19, 2005 9:03 AM

Davo said:

I too am trying to discover how to intercept an incoming phone call rather than an SMS message.
# August 31, 2005 9:55 PM

Problem with SendCallEvents said:

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.
# September 6, 2005 4:20 PM

barrybo said:

After our talk on the Device Emulator, a number of people asked me about the phone numbers I used in...
# September 16, 2005 8:54 PM

vineet gupta said:

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?
# February 25, 2006 3:27 PM

/egilh said:

# April 12, 2006 5:16 PM

Nish said:

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..
# May 10, 2006 1:02 PM

Jean said:

Hello everyone..
               Am developing an executable file for retrieving the sms from the phone..Since this a console based application i can test it in emulator. Cant switch back to menu for opening a new message. Is there any solution for this
# May 30, 2006 12:39 AM

Bombi said:

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?
# June 23, 2006 8:39 AM

sush said:

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

# February 3, 2007 1:43 AM

Malleswar said:

I am also expecting the same.

Is there any option to send SMS from one emulator to another?

Thanks in advance

# March 21, 2007 12:43 AM

Hello said:

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?

# April 9, 2007 6:37 AM

Parthiv said:

One question..Please help..Can I connect and get data from webservice while incoming call is in ringing mode only?

# April 10, 2007 7:39 AM

CNV said:

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..

# May 29, 2007 6:40 AM

sk said:

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.

# June 25, 2007 7:21 AM

Kiran said:

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.

# August 22, 2007 10:49 AM

jack said:

hi to do this must i write any form of a code

# September 6, 2007 5:27 AM

Brad said:

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.

# September 15, 2007 1:26 PM

srikanth said:

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....

# February 22, 2008 12:39 AM

Hazard said:

Many Thanks Krab, Useful for me very much.

# July 9, 2008 4:31 AM
Leave a Comment

(required) 

(required) 

(optional)

(required) 

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Page view tracker