Hi,
I was trying to send sms from a CDMA android device, but it crashes
with null pointer exception in the function call to
SmsManager::sendDataMessage() function.

SmsManager smsManager = SmsManager.getDefault();
smsManager.sendDataMessage(smscHost,null, (short)8021, text, sentPI,
null); //Null pointer exception.

The same code works fine for GSM devices. I am using the API from
"android.telephony.SmsManager", which as per the documnetation should
work for GSM and CDMA devices.

Have any one tried doing this on CDMA device? Do I need to use some
other API for sending SMS from CDMA device?

Regards,
Raj

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