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
1: telnet
- Open telnet connection to the emulator port. Type in telnet window
1: o localhost 5554
, 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
1: sms send 5556 Test Message
, where 5556 is phone number, Test Message is text of message.
And that is all …