delete sms programatically is NOT working on android 5.1 and above

后端 未结 1 1576
旧巷少年郎
旧巷少年郎 2021-01-29 06:08

I have tried

getContentResolver().delete(Uri.parse(\"content://sms/inbox/\" + id), null, null);

even

getConte

1条回答
  •  不思量自难忘°
    2021-01-29 06:30

    From Android 4.4 onward Only one app can delete , upgrade , block or do anything .so in order to work you have to set your app as default messaging app . For more information refer here Official android page on policy change

    hope it helps ...

    0 讨论(0)
提交回复
热议问题