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!