update SMS body, but not Date

Posted by everinsearch on Stack Overflow See other posts from Stack Overflow or by everinsearch
Published on 2010-05-23T09:10:48Z Indexed on 2010/05/23 9:20 UTC
Read the original article Hit count: 164

Filed under:
|
|

I'm trying to update body of all sms on Android device with

getContentResolver().update(Uri.parse("content://sms"), values.....

query but after request done, also updates message creation/received time.

How i can update message but leave old message date?

I have tried send to update query

ContentValues values = sms values oject;
values.put("body", updatedBody);
values.put("date", oldValues.getAsString("date"));

but it does not help.

© Stack Overflow or respective owner

Related posts about android

Related posts about android-sdk