I am working on app, i am using intent
to launch sms activity. I set the sms_body
of the intent
, after a while i changed the text of sms_body
and recepients
too but now when i launch the sms activity it show old text and old recepients.
I even clean the project. I debug as well, the values are setting correctly, but on activity launch it shows old text and recepients.
EDIT:
when i do the following code:
Intent intent = new Intent(Intent.ACTION_VIEW);
String primaryandsecondaryNumbers=PrimaryNumber+";"+SecondaryNumber;
String messageBody="MY MESSAGE";
intent.putExtra("address", primaryandsecondaryNumbers);
intent.putExtra("sms_body", messageBody);
intent.setData(Uri.parse("smsto:" + primaryandsecondaryNumbers));
intent.setType("vnd.android-dir/mms-sms");
startActivity(intent);
My messageBody is not updated but recepient numbers are set.
and when i comment:
intent.putExtra("address", primaryandsecondaryNumbers);
my message is updated, but my numbers are not visible