假来电的Android [英] Fake Incoming Call Android
问题描述
我怎么能伪造来电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这篇关于假来电的Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!