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.