Have you tried using this code below?
For content: // sms / inbox, fields _id, thread_id, address, identity, date, protocol, reading, status, type, reply_path_present, subject, body, service_center, blocked .
ContentValues values; values.put("date",mDate); values.put("address",mPhoneNumber); values.put("body",mMessage); ... // put values for various fields context.getContentResolver().insert(Uri.parse("content://sms/inbox"),values);
I donβt have time to try it right now, but it should work logically. Let me know if this is not so!
source share