Digit,

That's great.  Now my proof of concept will run end-to-end (phone-
>server->phone).
Thanks a lot,
Ken Bowen

On Apr 7, 8:28 pm, Digit <[EMAIL PROTECTED]> wrote:
> this is done through the console, not ADB
>
> you typically access the console by doing "telnet localhost 5554", but the
> cool thing is that you can also do that programmatically. what I mean is
> that your program can do the following:
>
> 1/ connect to TCP port 5554 on localhost
> 2/ write the command "sms send <senderPhoneNumber> <textMessage>" followed
> by a newline character (i.e. '\n') followed by "quit\n"
> 3/ read any answer character from the connection (necessary on Windows to
> avoid really weird Winsock-specific socket shutdown issues) until you
> encounter an error (which means the connection was closed)
>
> voila
>
> On Tue, Apr 8, 2008 at 2:11 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> wrote:
>
>
>
> > Hi all,
>
> > I understand that it is possible to "send" an SMS message to the
> > emulator using adb with a command line like:
>
> > sms send <senderPhoneNumber> <textmessage>
>
> > However, is it possible to send an SMS message to the emulator from
> > another (java) program, in particular, from a (Tomcat) servlet.
> > Coolest would be a remote servlet, but second-best would be from a
> > Tomcat running on the same machine (for a proof of concept).
>
> > Thanks in advance,
> > Ken Bowen
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to