feisky

云计算、虚拟化与Linux技术笔记
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

向Android模拟器发短信打电话

Posted on 2010-05-28 15:50  feisky  阅读(5579)  评论(1编辑  收藏  举报



1.启动android emulator,查看标题栏找出端口。一般是android
emulator (5554),其中


5554就是端口。


2.打开命令行,输入telnet localhost 5554。程序将会连接到android console,返回


Android Console: type 'help' for a list of commands
OK


模拟电话打入gsm <call|accept|busy|cancel|data|hold|list|voice|status>


输入gsm call <模拟打进的电话号码>。如:


gsm call 15555218135



模拟短信发送sms send <senderPhoneNumber> <textmessage>
输入sms send <模拟发送短信的电话> <内容>。如:


sms send 15555218135 hello


其中,15555218135为模拟器手机号码
无觅相关文章插件,快速提升流量