Search code examples
androidandroid-emulatorphone-call

Make incoming call in Android emulator without command code


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?


Solution

  • 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.

    enjoy ...