0891683108502905f0 71ff008100084724050003d40606 0043004a005181f300310030003000380036ff0c6b216708593165483002
开始一段是短信中心004到结尾是数据内容, 不知道中间那一串是什么, 和我们普通复制进去的格式不太一样,这个短信是自动复制到sim卡的内容, 普通我们复制进去的 71开始的那个位置是00或者01, 不知道中间的要怎么解析. 谁能帮忙看一下?或者提供是哪一份的3GPP协议
开始一段是短信中心004到结尾是数据内容, 不知道中间那一串是什么, 和我们普通复制进去的格式不太一样,这个短信是自动复制到sim卡的内容, 普通我们复制进去的 71开始的那个位置是00或者01, 不知道中间的要怎么解析. 谁能帮忙看一下?或者提供是哪一份的3GPP协议
我是新手,项目要求做这个,网上查了很多资料都没有。楼主如果知道给帮个忙啊!不胜感谢~~~
SmsMessage.SubmitPdu pdu = SmsMessage.getSubmitPdu(scAddr, number, item.mBody, true);
sManager.copyMessageToIcc(pdu.encodedScAddress, pdu.encodedMessage, 1)
这样操作能把短信复制到sim卡,但是信息显示的时间会出现错误。
,
Time then = new Time();
then.set(mDate); if(then.year < 2000) {
bo.write(intToGsmBcdByte(then.year - 1900));
}
else {
bo.write(intToGsmBcdByte(then.year - 2000));
} bo.write(intToGsmBcdByte(then.month + 1)); bo.write(intToGsmBcdByte(then.monthDay));
bo.write(intToGsmBcdByte(then.hour)); bo.write(intToGsmBcdByte(then.minute)); bo.write(intToGsmBcdByte(then.second));
bo.write(0x0);static byte intToGsmBcdByte(int time) { return (byte)((byte)(time%10) << 4 | ((byte)(time/10) & 0x0f));
}