我希望您可以通过编程方式发送彩信,我使用了以下代码:
问题是它会直接跳转到撰写短信页面,需要手动发送短信,但我不想这样,没有任何通知的情况下应该自动发送。我该怎么做?请有人分享答案。
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);
问题是它会直接跳转到撰写短信页面,需要手动发送短信,但我不想这样,没有任何通知的情况下应该自动发送。我该怎么做?请有人分享答案。