I want to fetch and view sms conversations?

前端 未结 5 873
天命终不由人
天命终不由人 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:04

    String[] projection = {"thread_id", "MAX(date)", "COUNT(*) AS msg_count", "body"};
    Cursor cursor = getContentResolver().query(Telephony.Sms.CONTENT_URI, projection, "thread_id) GROUP BY (thread_id", null, null);
    

提交回复
热议问题