>From what I can tell the code should work.
when I try the following code im given the choice of which app to
launch however when i select sms the file is not attached.
sendIntent.setType("*/*");
Does android not have the ability to do this?
On Sep 7, 10:10 am, Josh <[email protected]> wrote:
> I am using the following code to send an mp3 via sms/mms.
>
> Intent sendIntent = new Intent(Intent.ACTION_SEND);
> sendIntent.putExtra("sms_body", "message body test");
>
> sendIntent.putExtra(Intent.EXTRA_STREAM, newUri);
> sendIntent.setType("audio/mpeg");
>
> startActivity(sendIntent);
>
> When the code runs is opens gmail(compose) with the file attached
> instead of opening sms.
>
> What am I doing wrong?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---