I can convert int to hex using
Please can someone suggest a way of converting back from Hex to string and explain it in a simplistic way so I can understand.
I have tried various examples from the forum using ByteConverter or Bit.ParseInt but without success. Most of my attempts end up with a Java exception, or don't compile.
Presumably it is a two stage process, first converting the string to bits and then to int.
B4X:
Dim input As Int = 65535
Dim output As String
output = Bit.ToHexString(input)
Log(output)
Please can someone suggest a way of converting back from Hex to string and explain it in a simplistic way so I can understand.
I have tried various examples from the forum using ByteConverter or Bit.ParseInt but without success. Most of my attempts end up with a Java exception, or don't compile.
Presumably it is a two stage process, first converting the string to bits and then to int.