1

I'm trying to replace a small bit of functionality that's currently handled by the outdated Zbar library. I'm basically capturing a preview frame using Android's Camera.PreviewCallback and processing the byte[] data into a string. Looking at the ZXing implementation of this from online examples, I'm having a hard time believing that the data needs to go through that many custom objects in order to translate a simple QR byte array to a string. Example: QR Code encoding and decoding using zxing .

Does anybody have a clean solution for this? I'd even be happy with just an explanation of what Zxing is doing (and why).

Thank you in advance!!!

deMouser
  • 369
  • 1
  • 2
  • 14

1 Answers1

1

Consider something like this?

symData = new String(data, StandardCharsets.UTF_8);

Barney Chambers
  • 2,720
  • 6
  • 42
  • 78