Ringing myself using android emulator
I am developing a small ap开发者_如何学编程plication 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.
- 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.
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
> !
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
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.
In Emulator's "Extended Controls" window, there's an option to ring the phone artificially by means of a button "Call Device". See screenshot below:
精彩评论