java - Send sms - body not transmitted in Lollipop -


the following lines should open sms dialog in order send sms. on api 19, body transmitted dialog, on lollipop, remains blank.

intent sendintent = new intent(intent.action_view); sendintent.settype("vnd.android-dir/mms-sms"); sendintent.putextra("sms_body", bodysms);  context.startactivity(sendintent); 

any idea ?

with of commonsware, did trick :

intent sendintent = new intent(intent.action_view); sendintent.settype("vnd.android-dir/mms-sms"); sendintent.putextra(intent.extra_text, bodysms);  context.startactivity(sendintent); 

Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -