gpt4 book ai didi

android - 什么是 SMS 的状态代码

转载 作者:搜寻专家 更新时间:2023-11-01 09:25:38 25 4
gpt4 key购买 nike

我关注了this设置/跟踪短信的状态

所以在我的短信管理器 Activity 中我添加了一个状态

所以现在我想知道

的默认状态代码

1)已发送短信
2)一般失败
3)无服务
4)Null PDU
5) radio 关闭
6) SMS 已发送
7)SMS 未发送

我也关注了this关于短信代码。但是我想为以上所有七个设置状态代码

谁能推荐我以上七点

最佳答案

您可以使用 SmsManager类常量

int     RESULT_ERROR_GENERIC_FAILURE    
Generic failure cause
Constant Value: 1 (0x00000001)
------------------------------------------------

int RESULT_ERROR_LIMIT_EXCEEDED
Failed because we reached the sending queue limit.
Constant Value: 5 (0x00000005)
------------------------------------------------

int RESULT_ERROR_NO_SERVICE
Failed because service is currently unavailable
Constant Value: 4 (0x00000004)
------------------------------------------------

int RESULT_ERROR_NULL_PDU
Failed because no pdu provided
Constant Value: 3 (0x00000003)
------------------------------------------------

int RESULT_ERROR_RADIO_OFF
Failed because radio was explicitly turned off
Constant Value: 2 (0x00000002)
------------------------------------------------

int RESULT_ERROR_SHORT_CODE_NEVER_ALLOWED
Failed because the user has denied this app ever send premium short codes.
Constant Value: 8 (0x00000008)
------------------------------------------------

int RESULT_ERROR_SHORT_CODE_NOT_ALLOWED
Failed because user denied the sending of this short code.
Constant Value: 7 (0x00000007)
------------------------------------------------

int STATUS_ON_ICC_FREE
Free space (TS 51.011 10.5.3 / 3GPP2 C.S0023 3.4.27).
Constant Value: 0 (0x00000000)
------------------------------------------------

int STATUS_ON_ICC_READ
Received and read (TS 51.011 10.5.3 / 3GPP2 C.S0023 3.4.27).
Constant Value: 1 (0x00000001)
------------------------------------------------

int STATUS_ON_ICC_SENT
Stored and sent (TS 51.011 10.5.3 / 3GPP2 C.S0023 3.4.27).
Constant Value: 5 (0x00000005)
------------------------------------------------

int STATUS_ON_ICC_UNREAD
Received and unread (TS 51.011 10.5.3 / 3GPP2 C.S0023 3.4.27).
Constant Value: 3 (0x00000003)
------------------------------------------------

int STATUS_ON_ICC_UNSENT
Stored and unsent (TS 51.011 10.5.3 / 3GPP2 C.S0023 3.4.27).
Constant Value: 7 (0x00000007)
------------------------------------------------

关于android - 什么是 SMS 的状态代码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50921352/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com