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

后端 未结 7 1394
耶瑟儿~
耶瑟儿~ 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);
    
    0 讨论(0)
提交回复
热议问题