假来电的Andr​​oidAndr、oid

由网友(〗籿銕殘惢〖)分享简介:我怎么能伪造来电Android模拟器里面?How can I fake an incoming call inside the android emulator?下面让我打个电话,但我想迫使仿真器来接收一个电话,preferably从一些我选择。The following lets me make a call...

我怎么能伪造来电Android模拟器里面?

How can I fake an incoming call inside the android emulator?

下面让我打个电话,但我想迫使仿真器来接收 一个电话,preferably从一些我选择。

The following lets me make a call but I'd like to force the emulator to receive a call, preferably from a number I've selected.

adb shell am start -a android.intent.action.CALL tel:1112223333

因此​​,这个命令的直接对立面以上。

So, the direct opposite of the command above.

推荐答案

您可以在Android的Studio中使用DDMS在Eclipse中,Android设备监视器或运行在终端的命令行

You can use DDMS in Eclipse, Android Device Monitor in Android Studio or run command lines on terminal

使用DDMS:

开启DDMS / ADM 在Eclipse中:窗口>打开透视图> DDMS 在Android的工作室:工具>安卓> Android设备监控 Open DDMS/ADM in Eclipse: Window > Open Perspective > DDMS in Android Studio: Tools > Android > Android Device Monitor

在这之后,你会看到模​​拟器收到这个电话如下

After that, you will see the emulator receive this phone call as follows

使用命令行

$远程登录本地主机5554   $ GSM呼叫123456789   

$ telnet localhost 5554 $ gsm call 123456789

请注意:5554:为模拟器实例控制台端口号 12345678:来电号码

Note: 5554: console port number for emulator instance 12345678: incoming phone number

阅读全文

相关推荐

最新文章