Android - Sending Sound with Intent?
This is a code for firing an SMS intent:
String uri= "smsto:";
Intent smsIntent = new Intent(Intent.ACTION_SENDTO, Uri.par开发者_如何学编程se(uri));
smsIntent.putExtra("sms_body", msgText);
smsIntent.putExtra("compose_mode", true);
startActivity(smsIntent);
How do I send a sound file (.amr file) along with the message?
精彩评论