Description
I use com.google.android.gms.vision.barcode.BarcodeDetector
in order to read QR codes. The problem is these codes carry raw binary data; no phone numbers, no URLs, no geopoints... I cannot change these QR codes, because they are generated in a different application.
When I scan these QR codes using Android Barcode API, the resulting Barcode
object doesn't allow me to access the raw data, although it must know it!
All I get is "Unknown encoding"
message both in rawValue
and displayValue
properties.
Having a byte[]
property instead of two String
properties would make more sense, since QR codes can carry general data.
I don't see the point of hiding raw data byte array from developers. Could I somehow extend the BarcodeDetector
class or the Barcode
class to get what I need?
Thanks a lot!