hi Justin
Ithink i have found the answer to the question 2. i think
BroadcastReceiver#getResultCode() can get the sms send result.
Please help to anwer the following question 1. Thanks
(1) Whether Android support sending a text message with a port?
If not, whether will be supported in future release?
I find SmsManager#sendDataMessage can be used to send a binary
message with a port. But not found method for text message with port.
Thanks
BR
On Sep 18, 4:35 pm, anywhere <[EMAIL PROTECTED]> wrote:
> hi Justin
>
> Thans for your assistance.
> I still have other two issues to bother you.
> (1) Whether Android support sending a text message with a port?
> If not, whether will be supported in future release?
> I findSmsManager#sendDataMessage can be used to send a binary
> message with a port. But not found method for text message with port.
>
> (2) I noticed when sending a sms message, a result code can be
> got. So How can i get the result code?
> I didn't find the method.
>
> Thanks
> br
>
> On Sep 18, 6:53 am, "Justin (Google Employee)" <[EMAIL PROTECTED]>
> wrote:
>
>
>
> > 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 causesSmsManager.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-WorldslargestAndroidDevelopment 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 ofSmsManagerclass 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 -- Hide quoted text -
>
> > - Show quoted text -- 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
-~----------~----~----~----~------~----~------~--~---