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: http://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.