Simulate an Incoming Call in Android Emulator
You can simulate an incoming call in an Android Virtual Device Emulator in two ways.
- Command Prompt (Windows)
- Eclipse
If you don't have Eclipse configured, then you can try to simulate a call to the Emulator from the command prompt. I prefer using Eclipse because it is easy to use.
1. Command Prompt
- Open Command Prompt
- Type telnet
- Then type o localhost 5554
Here, an Emulator running locally in the port 5554 is connected. If the Emulator is using another port, then change 5554 correspondingly. Otherwise the connection fails.
- Finally type gsm call 123456
Here 123456 is the phone number to be simulated.
2. Eclipse
- Go to Debug mode when the Emulator is running ( Debug button is available at the top right corner of the Eclipse Window )
- Go to Window -> Show View -> Other -> Android -> Emulator Control
 |
| Emulator Control |
- Now type the number in the Incoming number field, select Voice radio button and click on Call button to simulate the call.
Thanks!! it was cool
ReplyDeleteCool! Why did you stopped writing!
ReplyDeletegracias me salvaste
ReplyDelete