QR Code reader built into my own activity

2

I need to implement a QR code reader in my activity, ie NO REDIRECT. Using ZXing will not solve my problem.

To get an idea, check out whatsApp in the WhatsApp Web function: There is an activity, with text above, and so, and then just below a square, with the camera already active, just waiting for you to point the phone to QrCode.

That's what I need. Develop a QR code reader within my own activity. Without having to call another API, redirect, push a button to start, none of it.

Important detail before anyone responds: Using ZXing will NOT SOLVE MY PROBLEM unless you have modified the code so that I can use it in MY OWN ACTIVITY, ok:)

Can someone please tell me a tutorial or give me a tip? I use Android Studio.

    
asked by anonymous 04.10.2016 / 19:01

2 answers

3

You can use Google's own Barcode API .

It supports the formats:

  • 1D barcodes: EAN-13, EAN-8, UPC-A, UPC-E, Code-39, Code-93, Code-128, ITF, Codabar.
  • 2D barcodes: QR Code, Data Matrix, PDF-417, AZTEC.

You can find an example here .

References :

link

    
04.10.2016 / 22:38
1

I found and tested the answer on this link, and it worked perfectly with the Vision API: link

We can close this topic.

    
04.10.2016 / 21:17