I use the following code to share audio file by MMS, but always show "Sorry, you cannot add this audio to your message". By blutooth, can share the audio successfully.
[Code] String uriString = "file://"+fileString; Uri uri = Uri.parse(uriString); Intent it = new Intent(Intent.ACTION_SEND); it.putExtra(Intent.EXTRA_STREAM, uri); it.setType("audio/*"); startActivity(Intent.createChooser(it, "Share Audio")); -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en