Home > Researches > Receiving a SMS in Android Emulator

Receiving a SMS in Android Emulator

1. Start the Android Emulator

2. Open up the windows console by going to Start -> Run (or Windows + R shortcut) and type in “cmd” and press enter.

3. Type in “telnet” and press enter. This should open the Telnet Console.
(If you encounter this error: ‘telnet’ is not recognized as an internal or external command, operable program or batch file, open this link and scroll down to see how to fix it: https://androidresearch.wordpress.com/2012/01/18/how-to-simulate-an-incoming-call-in-android/)

4. Telnet Console being displayed, type in “o localhost 5554″. This will establish a connection with the emulator on port 5554 and open the Android Console. 5554 is the port number and you can see it on the title bar of the emulator window.

5. To send the sms, type in: “sms send 0789456 Hello World″.
As a result, a notification will notify you that a new sms has arrived.

6. Use “exit” to exit the Android Console, and “quit” to quit the Telnet client.

Android send sms

  1. April 26, 2012 at 2:44 pm

    would be interesting to use wireshark at the same time and see the complete flow?

  2. Roshan
    June 21, 2012 at 1:59 pm

    Wow..!! That was a good thing . At least now i know that my SMS receiver is not working . It was the same way with DDMs , but this is better .

  3. October 12, 2012 at 9:53 am

    Actually when i send sms from telnet client in android emulator it is receive in chineese chracters.only sometimes othertime it’s received in english….I hope u have solution….

    I am using windows 7.Android emulator target version android 4.1 jelly bean..

  1. No trackbacks yet.

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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


Get every new post delivered to your Inbox.

Join 587 other followers

%d bloggers like this: