如何在Android模拟器来电不commad code [英] how to make incoming call in android emulator without commad code

查看:155
本文介绍了如何在Android模拟器来电不commad code的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想开发将在PhoneStateListener注册小的应用程序,并做了呼入和呼出箴言报一些魔法。为了调试的目的,我需要从手机外部触发onCallStateChanged(......)时,不执行实际收到的语音呼叫。

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

是否有可能与发送的电话号码,以调试应用程序不带命令行code莫名其妙地做到这一点?

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

推荐答案

创建AVD机上多了一个模拟器。你可以找到来自仿真器的顶部的仿真器数量。例如。 5554这个数字是一样可以进入模拟器这个数字(5554或5556或somting),并作出来电的电话号码。

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模拟器来电不commad code的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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