how to convert make the vendor id code read from an edittext and from another edittext the thermal printer product id? at the moment it works well only by entering the code directly as an example:
usb1.SetCustomDevice (usb1.DRIVER_SILABS, 0x456, 0x808)
if I insert the two edittex instead:
Code:
usb1.SetCustomDevice (usb1.DRIVER_SILABS, txtvendorid.text, txtpruductid.text)
in this way I receive the error:
java.lang.NumberFormatException: Invalid hex double: 0x456
what can you do to make it read correctly by the two edittext?