开发者

android SMS Inbox

开发者 https://www.devze.com 2023-02-08 07:30 出处:网络
How can we insert date in content://sms/inbox. i m using this code ContentValues sms = new ContentVa开发者_运维技巧lues();

How can we insert date in content://sms/inbox. i m using this code

ContentValues sms = new ContentVa开发者_运维技巧lues();
sms.put("date", long date);
objContext.getContentResolver().insert( Uri.parse("content://sms/inbox"),sms);

plz give me any solution.

Thanx khan


Use this:

sms.put("date", String.valueOf(System.currentTimeMillis()));
0

精彩评论

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