在默认的Andr​​oid文本应用程序使用SMSManager显示出站文本 [英] Show outbound texts using SMSManager in the default android text application

查看:194
本文介绍了在默认的Andr​​oid文本应用程序使用SMSManager显示出站文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在写一个使用用户语音发送短信的应用程序,我现在用的是SMSManager发送文本和它的作品。我遇到的问题是,当我去短信应用程序来查看我的文字历史我没有看到我的发送文本。是否有从SMSManager我发送文本的方式在我的文字历史出现?

I'm currently writing an application that uses the users voice to send out text messages, I am using the SMSManager to send texts and it works. The issue I am having is when I go to the text messaging application to view my text history I don't see my sent texts. Is there a way for my sent texts from the SMSManager to appear in my text history?

谢谢!

推荐答案

发送使用这种code后

After sending use this code

Context context; //you should initialize it somewhere
...
ContentValues values = new ContentValues();
values.put("address", number);
values.put("body", message );
values.put("date", time );
context.getContentResolver().insert(Uri.parse("content://sms/sent"), values);

但是,这是非官方的。

But this is unofficial

这篇关于在默认的Andr​​oid文本应用程序使用SMSManager显示出站文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆