android - Sms intent not working in sony xperia -


I am sending MMS from my application, it is working correctly in all devices, but when I have Sony Xperia I am using it, neither its recipients nor the SMS body is included.

  intent = new intent (intestinal action_asm) intent.setType ("vnd.android-directory / MMS-SMS"); Intent.putExtra ("address", "9412121212"); Intent.setData (Uri.parse ("SMS")); Intent.putExtra ("sms_body", "sample"); StartActivity;    

Try this type ...

  Intent = new intent (android.content.Intent.ACTION_SEND); Intent.setClassName (info.activityInfo.packageName, info.activityInfo.name); Intent.setType ("vnd.android-directory / MMS-SMS"); Intent.putExtra (Intent.EXTRA_TEXT, final_sms_txt); StartActivity;    

Comments

Popular posts from this blog

python - Writing Greek in matplotlib labels, titles -

c# - LINQ to Entities does not recognize the method 'Int32 IndexOf(System.String, System.StringComparison)' method -

Pygame memory leak with transform.flip -