Android ZBar scanner get barcode format

1.1k Views Asked by At

I am using the the Android ZBar library to scan a barcode and return it. Currently I can retrieve the string and so I am wondering if anyone knows how to return the format of the barcode itself when scanned?

Thanks in advance.

1

There are 1 best solutions below

1
On

Ok got it. It is just calling the getType() method on your Symbol. After you retrieve a Symbol object from the SymbolSet returned by scanner results, just call:

yourSymbol.getType();