Hello everyone,
I would like to send an SMS from the device to an email. I use this
code for it:

SmsManager sm = SmsManager.getDefault();
 sm.sendTextMessage(bodyText, null, "test123", null, null);

When the "bodyText" variable is set to "1234567890", then it works.
When the "bodyText" variable is set to any character, even "n", it
tells me a java.lang.StringIndexOutOfBoundsException.

Is there any way to trick it so that it will let me send to an email?

Thanks,
Noam.
--~--~---------~--~----~------------~-------~--~----~
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