Hello,
Im developing an app where the user has the option to send a sms
message using the default client on their device. The problem
develops when they are sending messages longer than 68-ish
characters. Android's messaging app shows something like 6/2 upon
opening. Not only does this not make sense since sms can be 145?
characters in length, but only the first message is ever sent.
I get this result using both the following methods.
//invoke the sms activity directly
Intent sendIntent = new Intent(Intent.ACTION_VIEW);
sendIntent.putExtra("sms_body", "some string over 68 characters");
sendIntent.setType("vnd.android-dir/mms-sms");
startActivity(sendIntent);
And:
//invoke a chooser, allowing the user to select the sms client
final Intent chooseIntent = new Intent
(android.content.Intent.ACTION_SEND);
chooseIntent.setType("text/*");
chooseIntent.putExtra(Intent.EXTRA_TEXT, "some string over 68
characters");
startActivity(Intent.createChooser(chooseIntent, "Select an App to
Share With..."));
Thanks in Advance,
Chris
--
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