I want to fetch and view sms conversations?

前端 未结 5 882
天命终不由人
天命终不由人 2020-12-08 01:10
ContentResolver cr = getContentResolver();
Cursor cur = cr.query(Uri.parse(\"content://sms/conversations/\"), null,null,null, null);     

is not wo

5条回答
  •  没有蜡笔的小新
    2020-12-08 02:07

    I am not sure and i haven't tried yet, but i think this may be of your work.

    Uri uriSms = Uri.parse("content://sms/inbox");
    Cursor c = getContentResolver().query(uriSms, null,null,null,null); 
    

    I had found this earlier from this answer: How to delete an SMS from the inbox in Android programmatically?

提交回复
热议问题