【发布时间】:2013-12-16 21:12:00
【问题描述】:
我想以编程方式发送彩信,我使用了以下代码
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);
问题是它指向撰写消息页面,需要手动发送 SMS,我不希望在没有任何通知的情况下发送它应该发送我该怎么做??
有人请告诉我答案
【问题讨论】: