When developing an Android Application, you sometimes need to test the response of the application when sending a text message to the Android mobile phone. For example, if you want to write a broadcast receiver that prompts you to receive or process a text message, you need to send a text message to the mobile phone for testing. Here is a simple method for sending text messages to the android simulator.
This method is implemented using ddms of eclipse ADT. First, click Open ddms, and in the upper right corner of the eclipse interface,
If not, click the icon on the left and click others.
After opening, an emulator control module is displayed in the middle left of the interface,
Enter the mobile phone number in the incoming number input box to call or send a text message.
First, run the android virtual machine. The next problem is that we do not know the mobile phone number of the android virtual machine yet. However, if you look at the title bar carefully, you will find 5554 words,
We can think of it as the virtual phone number of the mobile phone (the actual virtual phone number should be 15555215554), as long as you enter the 11 mobile phone number in the incoming number input box, or only enter 5554, click the following call button to call the android virtual machine ,: