Android: Send SMS messages from Emulator using Telnet

I’ve started to develop first Android application and will write some notes during development process.
The first note is sending sms messages from terminal.
So, There are a few steps to send messages from emulator using terminal:

  1. Start emulator (The emulator has to be started becaue you need to know port to connect). For starting emulator go to the Andriod SDK and AVD Manager->Virtual Devices->Start 
  2. Start telnet. Type in console window
  3. Open telnet connection to the emulator port. Type in telnet window

    , where localhost name of computer where emulator is running and 5554 it is port of emulator running.

  4. Try to send message. Type in telnet window

    , where 5556 is phone number, Test Message is text of message.

And that is all …

Leave a Reply

Your email address will not be published. Required fields are marked *