安卓:更新发件箱AFER发送短信 [英] Android: Updating the sent box afer sending an sms
本文介绍了安卓:更新发件箱AFER发送短信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的应用程序发送一个短信,我想更新手机发件箱
如如果SMS被BU用户发送。
如何才能做到这一点?
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 ?
推荐答案
您需要在添加此行smsManager.sendTextMessage(数字,空,递减,sentPI,deliveredPI);
:
ContentValues values = new ContentValues();
values.put("address", number);
values.put("body", desc);
getApplicationContext().getContentResolver().insert(Uri.parse("content://sms/sent"), values);
这篇关于安卓:更新发件箱AFER发送短信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文