I’ve started to develop first Android application and will write some notes during development process.
The first note is sending sms messages from terminal.
So, There are a few steps to send messages from emulator using terminal:
- Start emulator (The emulator has to be started becaue you need to know port to connect). For starting emulator go to the Andriod SDK and AVD Manager->Virtual Devices->Start
- Start telnet. Type in console window
- Open telnet connection to the emulator port. Type in telnet window
, where localhost name of computer where emulator is running and 5554 it is port of emulator running.
- Try to send message. Type in telnet window
, where 5556 is phone number, Test Message is text of message.
And that is all …