I have started to develop first Android project 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 
 , where localhost name of computer where emulator is running and 5554 it is port of emulator running.
 1: o localhost 5554
 
- Try to send message. Type in telnet window 
 , where 5556 is phone number, Test Message is text of message.
 1: sms send 5556 Test Message
 
No comments:
Post a Comment