转载地址:http://hi.baidu.com/jeremylai/item/420f9c9fe4881fccb62531f7
1. 启动Android Emulator, 查看标题栏找出端口。一般是android emulator(5554),其中5554就是端口。
2. 打开命令行,输入telnet localhost 5554。程序将会连接到android emulator,控制台会返回
Android Console: type ‘help’ for a list of commands
OK
3. 模拟电话打入。输入gsm call <模拟打进的电话号码>。如:gsm call 123456789
4. 模拟短信发送。输入gsm send <模拟发送短信的电话号码> <短信内容>。如:sms send 123456789 Hello
Android控制台命令:
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
=================================================
也可以在"DDMS"视图的"Emulator Control"标签页中,通过图形化界面发送短信。
【转】如何向Android模拟器打电话发短信