I want to retrieve the SMS messages from the device and display them?
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
This post is a little bit old, but here is another easy solution for getting data related to
SMS
content provider in Android:Use this lib: https://github.com/EverythingMe/easy-content-providers
Get all
SMS
:Each Sms has all fields, so you can get any info you need:
address, body, receivedDate, type(INBOX, SENT, DRAFT, ..), threadId, ...
Gel all
MMS
:Gel all
Thread
:Gel all
Conversation
:It works with
List
orCursor
and there is a sample app to see how it looks and works.In fact, there is a support for all Android content providers like: Contacts, Call logs, Calendar, ... Full doc with all options: https://github.com/EverythingMe/easy-content-providers/wiki/Android-providers
Hope it also helped :)
It is a trivial process. You can see a good example in the source code SMSPopup
Examine the following methods:
this is the method for reading: