Ringing myself using android emulator

若如初见. 提交于 2019-12-18 11:47:45

问题


I am developing a small application on Google's android emulator. I am trying to figure out how I can simulate a phone call from one instance of an emulator to another (both running on my computer). Does anyone know how this can be done?

Thank you very much.


回答1:


  • Launch the dialer application on the first emulator. As the number to dial, enter the console port number of the second emulator you'd like to simulate a call on.
  • You can see the port number of the instance in the windows title of the emulator. alt text http://www.freeimagehosting.net/uploads/6c15bc13f1.png
  • Press "Dial". A new inbound call appears in the second emulator instance.



回答2:


Alternatively to the solution provided by Kami, you can use DDMS or just the android console (in Linux and assuming emulator port is 5554):

$ telnet localhost 5554 <<!
> gsm call 12345678
> !



回答3:


simply open the DDMS from the eclipse and choose emulator control and you'll find a tel bar just type the phone number you want the emulator to receive and hit call




回答4:


In order for calling the port number to work, both emulator instances must be started from the same android AVD manager process. Two separate 'android' processes launching different emulators will not be able to call each other.



来源:https://stackoverflow.com/questions/2577785/ringing-myself-using-android-emulator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!