How to send a text message to the android Simulator

Source: Internet
Author: User

1. Start Android emulator and check the title bar to find the port. Generally, it is Android emulator (5554), of which 5554 is the port.

2. Open the command line and enter Telnet localhost 5554. The program will be connected to the android emulator, And the console will return

Android Console: Type 'help' for a list of commands

OK

3. simulate a phone call. Enter the GSM call <analog phone number>. Example: GSM call 123456789

4. Simulate text message sending. Enter the GSM send <phone number for sending a simulated text message> <SMS content>. For example, SMS send 123456789 hello

 

Android console command:

Android Console Command help:

Help | H |? Print a list of commands
Event simulate hardware events
GEO geo-location commands
GSM related commands
Kill kill the emulator instance
Network manage network settings
Power related commands
Quit | exit quit control session
Redir manage port redirections ctions
SMS related commands
AVD manager virtual device state
Window manage emulator window

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.