1. view the mechanism of SMS re-sending: main log: the re-transmission will be performed in hanldeSmsSent () only when the sending fails due to radio off or no service. The result is RESULT_ERROR_RADIO_OFF/RESULT_ERROR_NO_SERVICE, in either case, the SMS will be re-transmitted. For more information about this function, see SmsReceiverService. java.
To sum up our current retransmission mechanism:
Modem has two types of retransmission:
1. When CP_DATA is sent, CP_DATA will be re-transmitted without waiting for CP_ACK
2. If SMS over CS or PS fails to be transferred, the mobile phone will try another domain.
There are two scenarios for APP retransmission,
1. The reason for sending failure is that when no service is available
2. The reason for sending failure is when radio is off.
In both cases, the APP listens to the network condition and then tries to send the failed information after the network is OK.
Test method: according to the previous knowledge, the CMCC test should use a shielding box.
To sum up, the MTK function is supported. Verify the test environment in the shielding room.
2. Currently, android default supports automatic resend of sms mms, which is specified by spec. This design is also available in the code.
For details about how to resend a MMS Message, refer to DefaultRetryScheme. java. The message is automatically resend five times. For each retransmission time point, refer to the setting of this variable:
Private static final int [] sDefaultRetryScheme = {
0, 1*60*1000, 5*60*1000, 10*60*1000, 30*60*1000 };