0

Can I make my phone camera natively read QR code and take necessary action without opening the specific application to read it? I don't want to open the application to read these QR codes.

I am developing an android application which requires the following functionality. Please let me know how I can do it.

Thanks,

Deepak Kumar
  • 1,035
  • 10
  • 18

3 Answers3

1

This is the open source project to build QRCode reader with android camera https://github.com/zxing/zxing

arjun
  • 3,514
  • 4
  • 27
  • 48
  • Thanks for your answer, but I think using this method still I will have to open particular app to scan the QR code. I want my camera to automatically identify the QR code and take necessary action. – Ashish Kumar Feb 02 '17 at 10:11
  • No. Just integrate the source code from this project into you android app project – arjun Feb 02 '17 at 10:12
  • And this library, may be out of date, check the google vision API – A P Feb 02 '17 at 10:35
1

What about native Mobile Vision API? And here's a tut for barcodes by Google.

Sid
  • 14,176
  • 7
  • 40
  • 48
0

Spinning on @Sid's answer, the Mobile Vision API is my preferred way to go. It contain Google's own barcode detector classes and I use it in production apps with great result.

If you like a simpler interface that just opens the camera and returns the QR-code (or barcode) upon detection, this tutorial will probably be most useful. It contains all the stipped down classes you need as well.

Algar
  • 5,734
  • 3
  • 34
  • 51