Send SMS messages and phone calls to Android virtual machines.

Source: Internet
Author: User

Send SMS messages and phone calls to Android virtual machines.


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 to get more operation help)


Text message:

Sms send 13910823456 "11111111111111111111111111111111111"

Call:
Gsm call + 1366666888

How can I make an Android phone simulated by a computer Android virtual machine call a real machine and send a message?

Play Android software on the computer (including the Internet), you have to install java first, and then run on the computer with a android-sdk_r12-windows can be, but the call, send information will not be able ......

Android virtual machines lose connection with eclipse when they call

The connection between the VM and DDMS is soket communication.

When the simulator calls, the network is disconnected. This is impossible. The simulator cannot be monitored.

Not only the simulator, but also the real machine test!
If you want to detect something, print it with toast or write the log into the file!

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.