关于用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 。
望各位不吝赐教~~