您的位置:首页 > 移动开发 > Android开发

在Android模拟器上模拟来电

2011-11-01 22:27 302 查看
 

2011-09-05

 

最近项目要做一个控制来电显示的Android 应用

需要在Emulator上模拟来电 效果

方法如下:

1.单个电话
 

打开命令行cmd,输入telnet 回车.

然后输入 o localhost 5554 回车,连到Emulator上.

输入gsm call 123456 上面显示OK

这时再去看模拟器,上面就有来电了.

其他:

挂断电话:gsm cancel <模拟打进的电话号码>

设置其他模式:gsm voice unregistered为网络无法联通,denied为紧急呼叫模式

参考:(http://www.my400800.cn

help gsm

allows you to change GSM-related settings, or to make a new inbound phone call

available sub-commands:

   gsm list             list current phone calls

   gsm call             create inbound phone call

   gsm busy             close waiting outbound call as busy

   gsm hold             change the state of an oubtound call to 'held'

   gsm accept           change the state of an outbound call to 'active'

   gsm cancel           disconnect an inbound or outbound phone call

   gsm data             modify data connection state

   gsm voice            modify voice connection state

   gsm status           display GSM status

2. 多个模拟器模拟播打电话


启动多个模拟器,在模拟器A中播模拟器B的端口号码,即可。

3.发送短信


sms send <模拟发送短信的电话号码> <短信内容>

例如:sms send 1234567 Hello
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息