1

I am developing an android SMS app where I am deleting messages based on _id using below code:

 getContentResolver().delete(Uri.parse("content://sms/" + id),"address=? and date=?",null);

This is working fine on some phones. But on Samsung phones the oldest message is getting deleted. And I don't want that to happen. I want to delete particular Sms on touch. How can I do it?

Dharman
  • 30,962
  • 25
  • 85
  • 135
sanjana
  • 641
  • 2
  • 15
  • 36

0 Answers0