【发布时间】:2013-05-29 07:41:11
【问题描述】:
我有一个这样的字符串:
"12"
我需要将它转换成这样的十六进制值:
0x12
我有一个这样的字节数组
// 00 20 22 80 08 24 pi nn ff ff ff ff ff
byte VerifyingAPDU[] = { (byte)0x00,(byte)0x20,(byte)0x00,(byte)0x80,(byte)0x08,(byte)0x24,
(byte)0x12,(byte)0x34, //pi nn
(byte)0xff, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0xff };
Now i want to replace pi nn with user entered value in Eidter (EditText). how to do this ?
例如用户在编辑器中输入 1111 我必须替换 Ox12 --> 0x11 和 0x34-->0x11。
【问题讨论】:
-
这个问题在这里得到解答:stackoverflow.com/questions/923863/…
标签: android string hex type-conversion