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

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -