Android: Updating The Sent Box Afer Sending An Sms
My app sends an sms and I would like to update the phone sent box as if the sms was sent bu the user. How can this be done ?
Solution 1:
You need to add this lines after smsManager.sendTextMessage(number, null,desc, sentPI, deliveredPI);
:
ContentValues values = new ContentValues();
values.put("address", number);
values.put("body", desc);
getApplicationContext().getContentResolver().insert(Uri.parse("content://sms/sent"), values);
Post a Comment for "Android: Updating The Sent Box Afer Sending An Sms"