当前位置:操作系统 > 安卓/Android >>

在Android模拟器上模拟来电

最近项目要做一个控制来电显示的Android 应用
需要在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 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
 
 
 
Vista 系统中使用 Telnet服务 器问题
 
【问】 Vista下 输入telnet,提示没有找到该文件,如何找回telnet呢。

【答】 很多在Vista下没有找到telnet程序,如在“开始”的“运行”或“搜索”框中输入telnet,提示没有找到该文件,其实Vista默认是不安装的,由于是针对服务器设置的,在Windows Server 2008中是默认安装的。

              解决的方法也很简单,直接安装Vista的系统组件中安装即可,操作步骤,“我的电脑”->“控制面板”->“程序和功能”中,在左边的树图中可以看到“打开或关闭 Windows 功能”,在打开的新对话框“Windows 功能”中可以看到 “telnet服务器”和“telnet客户端”,我们选中这两项,telnet就恢复了,如果仅用于连接远程服务器,我们只需安装“telnet客户端”即可。

作者“我爱技术”
 

补充:移动开发 , Android ,
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,