Hi,
    I need to send message to a specific port and in the form of bytes not
text. So I cant use sendTextMessage() method.

On Tue, Apr 10, 2012 at 11:41 AM, Dalvinder Singh <[email protected]>wrote:

> Did you try 
> sendTextMessage<http://developer.android.com/reference/android/telephony/SmsManager.html#sendTextMessage%28java.lang.String,%20java.lang.String,%20java.lang.String,%20android.app.PendingIntent,%20android.app.PendingIntent%29>
> (String <http://developer.android.com/reference/java/lang/String.html>
>  destinationAddress, 
> String<http://developer.android.com/reference/java/lang/String.html>
>  scAddress, 
> String<http://developer.android.com/reference/java/lang/String.html>
>  text, 
> PendingIntent<http://developer.android.com/reference/android/app/PendingIntent.html>
>  sentIntent, 
> PendingIntent<http://developer.android.com/reference/android/app/PendingIntent.html>
>  deliveryIntent)
> of Sms Manager.
>
>
> On Thu, Apr 5, 2012 at 3:30 PM, azmat ali khan <[email protected]>wrote:
>
>> Hi Priya I am also facing same problem. Did u get any solution for this
>> problem...? If yes please help me out
>>
>>
>> On Thursday, October 20, 2011 5:42:39 PM UTC+5:30, priya wrote:
>>>
>>> I am developing an SMS application where i am sending a message using
>>> sendDataMessage function of API level 3,but if i try to send more than
>>> 133 bytes i am getting a null pointer exception as shown below
>>>
>>> WARN/System.err(223):java.**lang.NullPointerException WARN/
>>> System.err(223):at android.telephony.SmsMessage$**SubmitPdu.
>>> (SmsMessage.java:100) WARN/System.err(223):at
>>> android.telephony.SmsMessage.**getSubmitPdu(SmsMessage.java:**425)
>>> WARN/
>>> System.err(223):at
>>> android.telephony.SmsManager.**sendDataMessage(SmsManager.**java:196)
>>>
>>> Is there any other method which sends more than 133 bytes in a single
>>> shot.?????
>>
>>  --
>> 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
>>
>
>  --
> 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
>



-- 
regards,

Azmat Ali Khan

-- 
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

Reply via email to