最近項目要做一個控制來電顯示的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客戶端”即可。
作者“我愛技術”