I can catch sms, can see sender phone, body, I can abortBroadcast if I don't like this sms, but I don't know how to just mark this sms as read, that user can readit in box later. Any ideas how I can do this?
相关问题
- 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 might help you :
An answer has been given here: Set sms as read in Android
where "_id" is the message's ID
Edited, thanks NilayOnAndroid!
I did a workarround for versions newer that KitKat, from answer here: if there are messages to be read, when user leaves the app, start SMS app with the number for which I want messages to mark read. This will automatically mark all messages as read.
Since Android 4.4 KitKat the only app can modify sms data - SMS-app that was set as default
More info can be found here: http://android-developers.blogspot.ru/2013/10/getting-your-sms-apps-ready-for-kitkat.html
I don't think that there is any official support for this, but this question provides a method of doing it (have not tried it though): Mark MMS as read programmatically