Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to read barcodes with the camera on Android?

I want my application to recognize barcodes taken by camera. Is it possible using Android SDK?

Something like this: Barcode Scanner

like image 780
peter.o Avatar asked Dec 14 '10 20:12

peter.o


People also ask

Can I use my camera to scan barcode?

Open your Camera app and point it steadily for 2-3 seconds towards the QR Code you want to scan. Whenever scanning is enabled, a notification will appear. If nothing happens, you may have to go to your Settings app and enable QR Code scanning.


1 Answers

It's not built into the SDK, but you can use the Zxing library. It's free, open source, and Apache-licensed.

The 2016 recommendation is to use the Barcode API, which also works offline.

like image 186
Nathan Schwermann Avatar answered Sep 30 '22 17:09

Nathan Schwermann