I would like to know this as well.
On Sep 30, 8:54 pm, plusminus <[EMAIL PROTECTED]> wrote:
> *bump*
>
> On 24 Sep., 09:45, Cristina <[EMAIL PROTECTED]> wrote:
>
> > I have just done a test to send a binary messege to a port using this
> > code in 1.0
>
> > SmsManager smsManager = SmsManager.getDefault();
> > short port = 16001;
> > smsManager.sendDataMessage("5556","5554", port, "Hola".getBytes(),
> > null, null);
>
> > I use two emulators, one is launched at 5554 and the other at 5556
> > and
> > I try to send the binary sms from 5554 to 5556.
> > In the 5556 phone I have launch an application with a
> > BroadcastReceiver in order to receive SMS Messages (but I do not know
> > how to specify the port)
>
> > The application does not failed. But the 5556 phone does not receive
> > anything.....
> > Instead, in the console I receive the following messege every time I
> > do a try
> > [2008-09-24 14:05:06 - ddms]ADB rejected shell command (ls -l /):
>
> > Strange but it seems that the adb is receiving the request...
>
> > Does anybody has an example on how to send/receive binary SMS to an
> > application port usingsendDataMessage?
>
> > anywhere, were you able to do it?
>
> > On 18 sep, 11:11, anywhere <[EMAIL PROTECTED]> wrote:
>
> > > 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#sendDataMessagecan 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#sendDataMessagecan 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-WorldslargestAndroidDevelopmentCommunity
>
> > > > > > > > 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 -- Ocultar texto de la cita -
>
> > > - Mostrar texto de la cita -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---