Check the length of sMessage, if the message body is too long it may course this exception. Try to split your message body into shot pieces. Good luck!
2010/2/4 sherry <[email protected]> > This exception only occurs in emulator not on actual device. > > On Feb 3, 2:54 pm, sherry <[email protected]> wrote: > > The parameters are: > > > > sendTextMessage(sToEmailAddr, null, sMessage, null, null); > > > > The 4th and 5th parameters sentIntent and deliveryIntent are null, > > which were allowed. > > > > Sherry > > > > On Feb 3, 2:36 pm, sherry <[email protected]> wrote: > > > > > This worked in 1.5 but throw an exception in apk 2.0. > > > > > WARN/System.err(840): java.lang.NullPointerException > > > WARN/System.err(840): at android.os.Parcel.readException > > > (Parcel.java:1224) > > > WARN/System.err(840): at android.os.Parcel.readException > > > (Parcel.java:1206) > > > WARN/System.err(840): at com.android.internal.telephony.ISms$Stub > > > $Proxy.sendText(ISms.java:369) > > > WARN/System.err(840): at > > > android.telephony.SmsManager.sendTextMessage(SmsManager.java:87) > > > > > Any one else experience the same? What should I use to send a SMS to > > > an email address? > > > > > Thanks. > > > > > Sherry > > -- > 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]<android-developers%[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

