byte[] bs = {0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07};
Bundle bundle =new Bundle();
bundle.putByteArray("bytes", bs);
Message msg =new Message();
msg.what =0;
msg.obj = bundle;
Bundle b = (Bundle)msg.obj;
byte[] c = bundle.getByteArray("bytes");
System.out.println("c[]: " + Arrays.toString(c));
System.out.println("c[]: " + Arrays.toString(c));
网友评论