Android Question [Solved]Print Byte in Hex format

stefanoxjx

Active Member
Licensed User
Longtime User
Hi, I know that probably this argument was discussed many times, but I tried to find a solution into the forum without satisfaction :(
I need to print a byte in hex format.
I tried ByteConverter lib, but it doesn't seem to do what I want.
Can you help me?
Thanks.
 

stefanoxjx

Active Member
Licensed User
Longtime User
Hi Erel, and thanks for your help.
This is a part of code:
B4X:
c =  Bit.And(0xFF, Data(i))
edittext2.Text = edittext2.Text & BytesToString(c, 0, 1, "UTF-8")
I need to convert a single byte, don't an array.

The error is:
Convert impossible {Type=Byte,Rank=0, RemoteObject=True} in: {Type=Byte,Rank=1, RemoteObject=True}
 
Upvote 0
Top