打印

关于用EMULATOR CONSOLE模拟电话\短信

关于用EMULATOR CONSOLE模拟电话\短信

哪位大虾做过?模拟电话\短信。

官方文档中有下面这两段。

Telephony EmulationThe Android emulator includes its own GSM emulated modem that letsyou simulate telephony functions in the emulator. For example, you cansimulate inbound phone calls and establish/terminate data connections.The Android system handles simulated calls exactly as it would actualcalls. The emulator does not support call audio in this release.
You can use the console to access the emulator's telephony functions. After connecting to the console, you can use
gsm <call|data|voice> to invoke telephony functions.


SMS EmulationThe Android emulator console lets you generate an SMS message anddirect it to an emulator instance. Once you connect to an emulatorinstance, you can generate an emulated incoming SMS using this command:
sms <senderPhoneNumber> <textmessage>where <senderPhoneNumber> contains an arbitrary numeric string.

ADB shell里似乎没有这些命令的?

可是我发现如果在命令行下用emulator -console进入shell(而不是ADB shell),竟然没法输入???(只有一个诱人的小“#”,推出emulator之后才发现你的输入都到命令行里去了)
不知道是小菜我哪里2了  T T 。

望各位不吝赐教~~

TOP

多问一句,emulator的console究竟怎么进入啊 ……按照他官方文档说的用telnet连接也不行啊……

TOP

用Telnet来连接没有问题呀, !!!!!!你在试一试,或者你有防火墙吗????

[ 本帖最后由 panxiaoku 于 2007-12-25 17:51 编辑 ]

TOP

1.telnet localhost 5554
2.gsm call 你要模拟拨号的号码(136*****)
3.sms send 电话号码 文本消息

TOP

多谢两位,之前可能端口没弄对。可是控制台下居然又没有sms命令……

TOP

Eclipse中window->show view->other->emulator control

TOP

那怎样在两个模拟器间实现通话呢?

[ 本帖最后由 lishy 于 2008-3-11 15:48 编辑 ]

TOP

有谁知道怎么实现两个emulator之间的互联的啊?谢谢

有谁知道android的emulator之间怎么互联啊?谢谢

[ 本帖最后由 纵马天涯 于 2008-6-12 10:21 编辑 ]

TOP

回复 2# 的帖子

在linux下进入console才可以输入命令

TOP