我在这里向多个用户发送短信,短信保存在sendbox中,我不想这样做。
SmsManager sm = SmsManager.getDefault();
String msg = msgText.getText().toString();
for(int j=0;j<userNumber.length;j++){
String sendMsg = msg.replace("studentName",userName[j]);
sm.sendTextMessage(userNumber[j],null,sendMsg,null,null);
try {
Thread.sleep(3000);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
答案 0 :(得分:0)
我认为你不能这样做,除非你把它作为sms的默认应用程序 检查此链接 Delete SMS from android on 4.4.4 (Affected rows = 0(Zero), after deleted)
或者你也可以参考这篇文章.. Delete sms from another activity Android