Android: Barcode Scanner


There are many applications that uses Barcode scanner in one or the other way and its not that difficult to create one for yourself but when scanning a Barcode is a small part of your application then creating a scanner by yourself is not a worthy decision. I came across the same situation when I need a good Barcode library to add in my application. After using a handful of options including Google vision API, I finally came across the one that solved each an every problem of mine.

The library used is a third party library so please go through the license policy before use. The GitHub link to the library is here.

The procedure to use is extremely easy. Just add this dependency to your application build.gradle file

Now wherever you need to access the Barcode just add the below lines of code

As a Barcode is scanned the result will be redirected back to this activity where you can get the scanned Barcode result as

I needed only UPC_A and UPC_E code so I had the result checked but you can use it as you want.

. . .

Leave a Comment

Your email address will not be published. Required fields are marked*

Be the first to comment.


It was a successful collaboration. The Mobikul team provided the client everything they needed in a timely and high-quality manner. They were very professional, reliable, and accessible during the entire process. The client also saw no room for any improvements in the vendor's performance.

Vincenzo Carrano

Vincenzo Carrano

Administrator, Segshop

Talk to Sales


Live Chat
Start a Project

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home