Skip to content Skip to sidebar Skip to footer

Barcode Numbers Too Long For Integer.parseInt

im using zbar for barcode services, and at certain numbers the app shutsdown. Im scanning barcodes, receive the barcode in an edittext, have it set up so it would search the json

Solution 1:

Integer.parseInt(value) requires the String to only contain numbers.

If you look here the poster has a similar problem. Get int from String, also containing letters, in Java

Alternatively you could try simply using a String and try to match with that, if it is possible that the IDs like "22-22ON" are present in the database you're searching in.


Post a Comment for "Barcode Numbers Too Long For Integer.parseInt"