I want to fetch and view sms conversations?

前端 未结 5 880
天命终不由人
天命终不由人 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条回答
  •  猫巷女王i
    2020-12-08 01:56

    finally got what i needed!

    ContentResolver contentResolver = getContentResolver();
    final String[] projection = new String[]{"*"};
    Uri uri = Uri.parse("content://mms-sms/conversations/");
    Cursor query = contentResolver.query(uri, projection, null, null, null);
    

提交回复
热议问题