无法发送消息存储Android [英] Failed sending messages storage android
本文介绍了无法发送消息存储Android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
只想问一下默认的Android消息传递应用程序在哪里存储和读取失败就无法发送消息.我以为可以在content://sms/sent
上以STATUS_FAILED
作为状态查询它.谢谢.
Just want to ask where does the default android messaging app stores and read failed to send messages. I thought it can be queried on content://sms/sent
with STATUS_FAILED
as status. Thanks.
推荐答案
Telephony.Sms.Outbox
.此类将帮助您检索由于某种原因而未发送的邮件.
Telephony.Sms.Outbox
. This class will help you retreive messages which were not sent due to some reason.
使用URI作为content://sms/failed
来检索失败的已发送消息.
use URI as content://sms/failed
for retrieving failed sent messages.
类似地,其他类型也可以检索为:
Similarly other types can be retrieved as :
Inbox = "content://sms/inbox"
Failed = "content://sms/failed"
Queued = "content://sms/queued"
Sent = "content://sms/sent"
Draft = "content://sms/draft"
Outbox = "content://sms/outbox"
Undelivered = "content://sms/undelivered"
All = "content://sms/all"
Conversations = "content://sms/conversations".
If you want to retrieve it based on type
, take a look here.
public static final int MESSAGE_TYPE_ALL = 0;
public static final int MESSAGE_TYPE_INBOX = 1;
public static final int MESSAGE_TYPE_SENT = 2;
public static final int MESSAGE_TYPE_DRAFT = 3;
public static final int MESSAGE_TYPE_OUTBOX = 4;
public static final int MESSAGE_TYPE_FAILED = 5; // for failed outgoing messages
public static final int MESSAGE_TYPE_QUEUED = 6; // for messages to send later
这篇关于无法发送消息存储Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文