开发者

Android - Sending Sound with Intent?

开发者 https://www.devze.com 2023-03-20 13:59 出处:网络
This is a code for firing an SMS intent: String uri= \"smsto:\"; Intent smsIntent = new Intent(Intent.ACTION_SENDTO, Uri.par开发者_如何学编程se(uri));

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?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号