我按this设置/跟踪短信状态
所以在我的短信管理器活动中我添加了A状态
所以现在我想了解
的默认状态代码 1)SMS sent
2)Generic failure
3)No service
4)Null PDU
5)Radio off
6)SMS delivered
和7)SMS not delivered
我也关注this关于SMS的代码。但我想为所有七个设置状态代码
任何人都可以建议我七岁以上
答案 0 :(得分:1)
您可以使用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)
------------------------------------------------
答案 1 :(得分:1)
你是说这个吗?
RESULT_ERROR_GENERIC_FAILURE
public static final int RESULT_ERROR_GENERIC_FAILURE
一般失败原因
常数值:1(0x00000001)
3)RESULT_ERROR_NO_SERVICE
public static final int RESULT_ERROR_NO_SERVICE
因服务当前不可用而失败
常数值:4(0x00000004)
4)RESULT_ERROR_NULL_PDU
public static final int RESULT_ERROR_NULL_PDU
因为没有提供pdu而失败
常数值:3(0x00000003)
5)RESULT_ERROR_RADIO_OFF
public static final int RESULT_ERROR_RADIO_OFF
因无线电明确关闭而失败
常数值:2(0x00000002)
但对于项目:1,6,7我甚至在Android开发者文档中找不到任何内容,我认为您应该使用广播接收器中的result_Ok发送短信和广播接收器来发送短信,我希望我能帮忙你。