Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/209.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 如何从SMS获取PDU_Java_Android - Fatal编程技术网

Java 如何从SMS获取PDU

Java 如何从SMS获取PDU,java,android,Java,Android,只是想知道是否有可能从SMS重新创建PDU,以及如何创建? 我看过 @Override public void onReceive(Context context, Intent intent) { Bundle bundle = intent.getExtras(); Object[] aPDUArray = (Object[]) bundle.get("pdus"); // Here it represent as a byte array, how can i convert it to

只是想知道是否有可能从SMS重新创建PDU,以及如何创建? 我看过

@Override
public void onReceive(Context context, Intent intent) {
Bundle bundle = intent.getExtras();
Object[] aPDUArray = (Object[]) bundle.get("pdus");

// Here it represent as a byte array, how can i convert it to String ?

}

好的,我刚找到答案,贴了出来