以编程方式发送短信不会将其保存到“已发送邮件”中
我正在从我的应用程序以编程方式发送短信。已发送的邮件不会保存在“已发送邮件”文件夹中。我读过几篇文章,尤其是这篇文章...
http://android-developers.blogspot.com/2010/05/be-careful-with-content-providers.html
但我确实需要将其保存在“已发送项目”中,因为我确实发送了短信。避免我的应用程序崩溃的最佳方法是什么?
I am sending an SMS programmatically from my app. The sent message is not saved in Sent Items folder. I have read few posts, especially this one...
http://android-developers.blogspot.com/2010/05/be-careful-with-content-providers.html
But I do need to save it in Sent Items as I have indeed sent an SMS. What is the best way to do it such a way that my app doesn't break?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以实用地将消息保存在已发送的项目或收件箱中。
在 AndroidManifest 中使用此权限
You can save Message Pragmatically, in sent items or in inbox.
Use this permission in AndroidManifest
使用内置短信应用程序发送短信,请查看这篇文章,其中包含代码片段,说明如何执行此操作:有意图地启动短信应用程序
Use the builtin sms app for sending the sms, have a look at this post with a code snippet how to do this: launch sms application with an intent