开发者

How to modify SMSes in an Android inbox

开发者 https://www.devze.com 2022-12-21 07:52 出处:网络
开发者_开发问答How can I change the content of all or certain SMSes in my inbox?do { body.add(cursor.getString(3));

开发者_开发问答How can I change the content of all or certain SMSes in my inbox?


do {
    body.add(cursor.getString(3));
    values1.put("body", "Update 1" + cursor.getString(3));
    getContentResolver().update(Uri.parse("content://sms/inbox"), values1,
      "_id=" + cursor.getInt(0), null);
} while (cursor.moveToNext());
0

精彩评论

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

关注公众号