在没有命令代码的情况下在Android模拟器中拨打电话 [英] Make incoming call in Android emulator without command code

查看:101
本文介绍了在没有命令代码的情况下在Android模拟器中拨打电话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试开发一个小型应用程序,该应用程序将在PhoneStateListener上注册,并对传入和传出呼叫监视器进行一些处理.出于调试目的,我需要从电话外部触发onCallStateChanged(...)事件,而不是执行真正的语音呼叫.

I'm trying to develop a small app that will be registered on PhoneStateListener and do some magic over incoming and outgoing calls monitor. For debugging purposes, I need to trigger onCallStateChanged(...) event from outside of phone, not perform real incoming voice call.

是否可以通过不通过命令行代码将电话号码发送到调试后的应用程序来完成此操作?

Is it possible to do this somehow with sending phone number to debugged app without command line code?

推荐答案

在avd计算机上再创建一个模拟器.您可以从仿真器顶部找到仿真器编号.例如. 5554这个号码就像电话号码,您可以输入仿真器的这个号码(5554或5556或正在拨打电话)并打入电话.

create one more emulator on avd machine. You can find the emulator number from top of the emulator. Eg. 5554 this number is like phone number you can enter the emulator this number(5554 or 5556 or somting) and make a incoming call.

享受...

这篇关于在没有命令代码的情况下在Android模拟器中拨打电话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆