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. Led fix Hero rom

Yihaaaaaaa...

Led is working!!!!

How to..

Buka link xda yg dari om ardi..
Nanti disana ada beberapa kernel Hero Rom, cari yg sesuai dgn rom hero yg kita 
pakai..
Download it..flash it..jalan dah..ha ha ha ha i love u full..




--- Sent with SEVEN on Android - the new generation of mobile messaging

--~--~---------~--~----~------------~-------~--~----~
Google Groups "Indonesian Android Community [id-android]" group.

To post to this group, send email to id-android@googlegroups.com

To request to subscribe to this group, please visit the following page:
 

2. Where are android kernel patches available ?

Hi there,

I am looking for Android specific kernel patches (binder, power
management, ashmem etc... ), one way to get this pacth information is
to go through the code and Identify the files/chnages specific to
Android. I would like to know whether all the Android kernel patches
are available at some common place

Regards
Shivappa

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

3. getting length of an EditText while entering text

4. activity is destroyed when press home key

5. getting length of an EditText while entering text

6. Have gotten the same app to review three times

7. getting length of an EditText while entering text