Well, sorry this has taken so long to respond to! In the process of trying to write a demonstration I discovered a bug. There is a bug in the emulator code that causes SmsManager.sendDataMessage() to fail due to an infinite loop.
A bug has been filed and this should be fixed in a future release of the SDK. At that time, please bring this issue up again to remind me to write a sample. Cheers, Justin Android Team @ Google On Sep 10, 2:28 am, anywhere <[EMAIL PROTECTED]> wrote: > hi Justin > > Thanks for your help. > But i am still confused about how to set the port, as i did not > find any method to set a port for listen coming sms binary message in > the document. > if i write a appliction to receive the binary sms message how > should i do? > > Thanks > > On Sep 10, 8:18 am, "Justin (Google Employee)" <[EMAIL PROTECTED]> > wrote: > > > Data messages sent over SMS are limited in length (133 bytes > > actually), so this is probably the crash that you are running into. > > The port number is the port on the receiving device that the receiving > > service is listening on. Presumably your service is bound to this port > > and waiting for messages. > > > Using SMS data messages might not be really what you want to do > > because of their small size. This is not really a feasible replacement > > for GTalk's data messaging functionality. > > > Cheers, > > Justin > > Android Team @ Google > > > On Sep 4, 6:08 pm, plusminus <[EMAIL PROTECTED]> wrote: > > > > *bump* > > > > I'd like to know that too. > > > How to receive DataMessages then? > > > > Btw: your bug may be reated to this > > > one:http://code.google.com/p/android/issues/detail?id=856 > > > > Best Regards, > > > plusminus > > > #http://www.anddev.org-Worldslargest Android Development Community > > > > On 26 Aug., 05:13, anywhere <[EMAIL PROTECTED]> wrote: > > > > > hi all > > > > > I am now trying to write some application about sms on 0.9 beta > > > > SDK. The method sendTextMessage of SmsManager class performed well. > > > > But when usingsendDataMessageto send message SDK will crash. > > > > Would you please explain what's means of destinationPort parameter > > > > and how to set it. > > > > > Thanks- Hide quoted text - > > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

