在Emulator上模拟来电效果,方法如下:
1.单个电话
打开命令行cmd,输入telnet 回车.
然后输入 o localhost 5554 回车,连到Emulator上.
输入gsm call 123456 上面显示OK
这时再去看模拟器,上面就有来电了.
其他:
挂断电话:gsm cancel <模拟打进的电话号码>
设置其他模式:gsm voice unregistered为网络无法联通,denied为紧急呼叫模式
参考:
help gsm
allows you to change GSM-related settings, or to make a new inbound phone call
available sub-commands:
gsm listlist current phone calls
gsm callcreate inbound phone call
gsm busyclose waiting outbound call as busy
gsm holdchange the state of an oubtound call to 'held'
gsm acceptchange the state of an outbound call to 'active'
gsm canceldisconnect an inbound or outbound phone call
gsm datamodify data connection state
gsm voicemodify voice connection state
gsm statusdisplay GSM status
2. 多个模拟器模拟播打电话
启动多个模拟器,在模拟器A中播模拟器B的端口号码,即可。
3.发送短信
sms send <模拟发送短信的电话号码> <短信内容>
例如:sms send 1234567 Hello