纯字符长短信跨网发送网络侧不处理

    private static void encodeEmsUserDataPayload(UserData uData)         throws CodingException     {         byte[] headerData = SmsHeader.toByteArray(uData.userDataHeader);         if (uData.msgEncodingSet) {             if (uData.msgEncoding == UserData.ENCODING_GSM_7BIT_ALPHABET) {                 encode7bitEms(uData, headerData, true);             } else if (uData.msgEncoding == UserData.ENCODING_UNICODE_16) {                 encode16bitEms(uData, headerData);             } else if (uData.msgEncoding == UserData.ENCODING_7BIT_ASCII) {
                encode7bitEmsAscii(uData, headerData); 
            }else {                 throw new CodingException("unsupported EMS user data encoding (" +                                           uData.msgEncoding + ")");             }         } else {             try {                 encode7bitEms(uData, headerData, false);             } catch (CodingException ex) {                 encode16bitEms(uData, headerData);             }         } 

}

你可能感兴趣的:(android,sms,encoding)