This is part of the code that I use to call the SMS application:
Intent intent = new Intent(Intent.ACTION_SENDTO, Uri.parse(uri)); intent.putExtra("sms_body", body); intent.putExtra("compose_mode", true); launchIntent(intent);
On devices with os version lower than Android 3.0, the above code works fine, the SMS page opens and the message is sent, and the numbers are filled out correctly, but on Android 3.0 and higher devices this no longer works.
In Android 3.0, an SMS request is called, and the number is filled, not the text, where, as in Android 4.0, the intention is SMS and the text is filled, not the number.
Does anyone know a solution to this problem?
source share