How to use SMS content provider? Where are the docs?

后端 未结 7 1441
耶瑟儿~
耶瑟儿~ 2020-11-29 19:32

I\'d like to be able to read the system\'s SMS content provider. Basically I wanted to make an SMS messaging app, but it would only be useful if I could see past threads etc

7条回答
  •  情书的邮戳
    2020-11-29 20:12

    Use the selectionArgs field

    String limite = "the timestamp converted to String";
    Cursor cur = c.getContentResolver().query(uriSMSURI, null,"date" + ">?", new String[] {limite},null);
    

提交回复
热议问题