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

后端 未结 7 1420
耶瑟儿~
耶瑟儿~ 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 19:59

    Or you can do something like below:

    for(String s : cursor.getColumnNames()){
         Log.d("smsColumns", "Column: " + s);
    }
    

提交回复
热议问题