How to use SmsManager.sendDataMessage() to send the message

by anywhere » Tue, 26 Aug 2008 23:12:47 GMT


Sponsored Links
 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 using sendDataMessage to send message SDK will crash.
    Would you please explain what's means of destinationPort parameter
and how to set it.

Thanks

--~--~---------~--~----~------------~-------~--~----~



How to use SmsManager.sendDataMessage() to send the message

by plusminus » Fri, 05 Sep 2008 09:08:46 GMT


 *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  - Worlds largest Android Development Community



--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


How to use SmsManager.sendDataMessage() to send the message

by Justin (Google Employee) » Wed, 10 Sep 2008 08:18:32 GMT


 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




--~--~---------~--~----~------------~-------~--~----~



How to use SmsManager.sendDataMessage() to send the message

by anywhere » Wed, 10 Sep 2008 17:28:24 GMT


 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:18am, "Justin (Google Employee)" <[EMAIL PROTECTED]>




--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. It's a Gift , Keep it

http://www.urlsaudi.com/4you
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. Babylon Pro 7.5.2 (r5)

You Know what this is , Babylon Pro 7.5.2 (r5)+ license

http://www.urlsaudi.com/Babylon

Enjoy
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. Question about spinner and quick text search.

4. Market Copy Protection options

5. Browser Upload

6. Phone.apk modification

7. Google Checkout - Any way to manage customer relation / Checkout also putting multiple holds on txns.