/**
* 发送音频
* @param file 音频文件
*/
private void mms_Audio(File file){
Intent intent = new Intent(Intent.ACTION_SEND,Uri.parse("mms://"));
intent.setClassName("com.android.mms", "com.android.mms.ui.ComposeMessageActivity");
Uri fileUri=queryUriforAudio(file);
intent.putExtra(Intent.EXTRA_STREAM, fileUri);
intent.setType("audio/*");
//startActivity(intent);
startActivity(Intent.createChooser(intent, "MMS:"));
}
下面的各种方法均是通过android自带的intent进行采集的发送的,见代码
/**
*
* 发送彩信
* @param file 文件地址
* @param body
*/
private void sendMMS_Image(String file,String body){
Intent intent = new Intent(Intent.ACTION_SEND);
intent.setClassName("com.android.mms", "com.android.mms.ui.ComposeMessageActivity");
intent.putExtra("subject", "彩信主