我想以编程方式发送MMS,我使用了以下代码
Intent sendIntent1 = new Intent(Intent.ACTION_SEND);
try {
sendIntent1.setType("text/x-vcard");
sendIntent1.putExtra("address","0475223091");
sendIntent1.putExtra("sms_body","hello..");
sendIntent1.putExtra(Intent.EXTRA_STREAM,
Uri.parse(vcfFile.toURL().toString()));
} catch (MalformedURLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
startActivity(sendIntent1);
Run Code Online (Sandbox Code Playgroud)
问题是它指向撰写消息页面,并需要手动发送短信,我不想这样,没有任何通知它应该发送我怎么能这样做?
SomeBody请与我分享答案