那位高人能帮忙转换一下代码!万分感谢啊!!!!!
public void onReceive(Context context, Intent intent)
{
Bundle bundle = intent.getExtras();
Object messages[] = (Object[]) bundle.get("pdus");
SmsMessage smsMessage[] = new SmsMessage[messages.length];
for (int n = 0; n < messages.length; n++)
{
smsMessage[n] = SmsMessage.createFromPdu((byte[]) messages[n]);
}
sharpoo
- 发布:2015-10-14 09:45
- 更新:2015-10-14 09:45
- 阅读:1449
0 个回复