Pracuję nad aplikacją, w której chcę usunąć wszystkie wiadomości SMS ze skrzynki odbiorczej. Do tego użyłem następującego kodu.Jak usunąć wszystkie SMS-y z skrzynki odbiorczej programowo w systemie Android?
Uri uriSms = Uri.parse("content://sms/inbox");
Cursor c = getContentResolver().query(uriSms, null,null,null,null);
int id = c.getInt(0);
int thread_id = c.getInt(1); //get the thread_id
getContentResolver().delete(Uri.parse("content://sms/conversations/" + thread_id),null,null);
Ten kod nie działa. Czy jest jakiś sposób, aby zrobić to samo?
http://stackoverflow.com/questions/419184/how-to-delete-an-sms-from-the-inbox-in-android- programowo –