1.
byte response;
(byte) Reader.read ()
Can accept 16 binary, two bit into 10 binary number
Converts a 10 binary number to a 16 binary number. You can do it.
The ReadLine will automatically convert the 16 decimal number into a String here and convert it to 10 binary. Horizontal slot
Here, the return is accepted as a string type. can be read out. If you accept the 16 binary, you can't do it now.
String str = integer.tohexstring (response);
Decimal to 16 binary: integer.tohexstring (int i) decimal into octal integer.tooctalstring (int i) decimal to binary integer.tobinarystring (int i) 10 Six decimal integer.valueof ("FFFF", +). ToString () octal to decimal integer.valueof ("876", 8). ToString () binary goto decimal integer.valueof ("0101", 2). ToString ()
1). int i = Integer.parseint ([String]);
or i = Integer.parseint ([string],[int radix]);
android--1212