开发者

update SMS body, but not Date

开发者 https://www.devze.com 2022-12-31 02:32 出处:网络
I\'m trying to update body of all sms on Android device with getContentResolver().update(Uri.parse(\"content://sms\"), values.....

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.

开发者_Python百科

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.


I found that getContentResolver().update() with values.put("date"...) updates SMS date correctly, the only problem is - incorrect displaying date for conversation thread. If enter into conversation, you'll see correct dates for SMS messages, after some enter and leave different conversations, android change conversation dates to correct.

The only problem how force updating conversation dates to correct...

0

精彩评论

暂无评论...
验证码 换一张
取 消