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

asp.net - Procedure or function "Procedure name" expects a parameter "Param name" which was not supplied occurs rarely -

c# - The item with identity 'Id' already exists in the metadata collection. Parameter name: item -

c++ - Redefined variable in the other module -