NYC*_*ppo 13 sms android types android-contentprovider
我知道Android中没有官方支持内容:// sms / provider.尽管如此,我想知道是否存在一些常用的约定,这些约定出现在"type"列中,可以从content:// sms / queries返回.
例如,我知道类型"1"和"2"通常分别代表"传入"和"传出".是否还有其他常用的类型值?例如,我有时会看到类型"20".
提前感谢任何有关此信息或讨论的指示.
che*_*box 15
如果你正在处理SMS,你需要挖掘源代码,因为几乎没有可用的文档.
我想这就是你要找的东西:
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
Run Code Online (Sandbox Code Playgroud)
Vj_*_*r 웃 12
不确定20型.
但我所知道的是......
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".
Run Code Online (Sandbox Code Playgroud)