I am trying to mark all messages in a android chat thread as read. I am
using following code which I copied from AOSP project but I my app goes
into ANR and I keep getting following message in logs.
ContentValues sReadContentValues = new ContentValues(2);
sReadContentValues.put("read", 1);
sReadContentValues.put("seen", 1);private static final String UNREAD_SELECTION
= "(read=0 OR seen=0)";
context.getContentResolver().update(threadUri, sReadContentValues,
UNREAD_SELECTION, null);
SQLiteConnectionPool: executeForChangedRowCount started 152577ms ago -
running, sql="UPDATE sms SET read=?,seen=? WHERE (read=0 OR seen=0) AND
thread_id=1464"
I have been trying since hours to fix this issue.
Thank you.
--
You received this message because you are subscribed to the Google Groups
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit
https://groups.google.com/d/msgid/android-developers/9c117a16-93df-4c8c-afa2-b408f6a47ad4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.