Reprint Address: Http://hi.baidu.com/jeremylai/item/420f9c9fe4881fccb62531f7
1. Start Android Emulator and look at the title bar to find the port. Typically Android emulator (5554), where 5554 is the port.
2. Open the command line and enter telnet localhost 5554. The program will connect to Android emulator and the console will return
Android console:type ' help ' for a list of commands
Ok
3. Analog phone access. Enter the phone number > for GSM call < analog. such as: GSM Call 123456789
4. Analog SMS send. Enter GSM send < analog to send SMS phone number > < SMS content >. Example: SMS Send 123456789 Hello
Android Console command:
Android Console Command Help:
Help|h|? Print a list of commands
Event Simulate hardware events
Geo Geo-location commands
GSM GSM Related commands
Kill Kill the Emulator instance
Network Manage network settings
Power Power Related commands
Quit|exit quit control Session
Redir Manage Port redirections
SMS SMS Related commands
AVD Manager Virtual device state
Window Manage Emulator window
=================================================
You can also send text messages through the graphical interface in the Emulator Control tab of the DDMS view.