I ran into this problem and finally concluded that the string "sms_body" is no longer applicable in Android 4; instead, the more logical Intent.EXTRA_TEXT key is used.
String text = "Hello world"; i = new Intent(Intent.ACTION_VIEW); i.setData(Uri.parse("sms:")); // i.setType("vnd.android-dir/mms-sms"); i.putExtra(Intent.EXTRA_TEXT, text); i.putExtra("sms_body", text); startActivity(i);
This code works on both Android 2.x and Android 4.0, although I can not find the documentation that supports it. I decided to go with the "sms:" URI rather than using the mime type, since the mime type is unfortunately non-standard.
Dorje source share