Hi
this code does not compile.
I get the following error:
All help appreciated.
Regards
John.
this code does not compile.
B4X:
#If JAVA
public String ByteArrayToHexString(byte [] inarray)
{
int i, j, in;
String [] hex = {"0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"};
String out= "";
For(j = 0 ; j < inarray.length ; ++j)
{
in = (int) inarray[j] & 0xff;
i = (in >> 4) & 0x0f;
out += hex[i];
i = in & 0x0f;
out += hex[i];
}
Return out;
}
#End If
I get the following error:
All help appreciated.
Regards
John.