The following methods are all tested successfully:
1. Use commands to simulate
(1) simulate incoming calls
1. Open command line CMD and enter Telnet and press Enter.
2. Enter o localhost 5554
Press enter to connect to emulator.
3. Enter GSM call 13656563636. If OK is displayed, the call is successful (the phone number can be specified at will)
(2) simulate text messages
1. Open command line CMD and enter Telnet and press Enter.
2. Enter o localhost 5554 and press enter to connect to emulator.
3. SMS send13656563636 hello. If OK is displayed, the call is successful (the phone number can be specified at will, and hello is the text message content)
2. Simulation with ddms
1. Call up the ddms window
Step: Open eclipse-> window-> open perspective-> ddms
2. Call out the emulator control window.
Step: Open eclipse-> window-> show view-> Other-> Android-> emulator Control
3. Enter the recipient's phone number in incoming number under telephony actions
There are voice and SMS single-choice buttons, representing the phone and SMS respectively
(1) simulate a call. When selecting voice, click call.
(2) simulate a text message. When SM is selected, enter the text message content in the message, and then click send to send
Iii. as follows:
1. Call
2. SMS
Thank you!