There are many questions about it, no answers are working in my application :(
I need to remove SMS from a receiver, even if the user can see it, but it must be removed programmatically.
How can I do it?
The most suitable I have used was the following, but it doesn't work :(
context.getContentResolver().delete(
deleteUri,
"address=? and date=?",
new String[] { msg.getOriginatingAddress(),
String.valueOf(msg.getTimestampMillis()) });
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…