Send text messages to virtual machines (Android SMS debugging)

Source: Internet
Author: User

For Android development, debugging of text messages and phone calls was not completed at the beginning.ProgramPut it on your phone for debugging. Several hundred text messages will be sent in a few days. Fortunately, I have 200 text packets, or I will lose money.

 

After time, I went online and found information about text message and telephone debugging.

 

Here, let's share it with you. Don't let others step into what I 've already done ".

 

Android emulator already contains the GSM module, which can be used to simulate telephone and text message debugging (you don't have to spend too much money)

 

First, you must open the VM:

Emulator-AVD xxxxxx-scale 0.8 &

Needless to say, the first parameter is the AVD name and the second parameter is the display size.

 

Then use:

Telnet localhost <port>

Port is the virtual machine port number, generally 5554 (you can use ADB devices to view)

The complete statement is: Telnet localhost 5554.

 

In this case, we enter the android console and can use commands to perform operations.

(Help help to get more operation help)

Text message:

SMS send 13910823456 "11111111111111111111111111111111111"

Call:

 

 

GSM call + 1366666888

 

 

 

OK. Write it here to share it.

 

 

Related Article

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.