21

Possible Duplicate:
Android - Barcode Scanning, Options? Zxing?
Android: Is there a way to implement the barcode scanner into an app?

I am planning to integrate a barcode reader to my application. Is there already an android API for that?

Community
  • 1
  • 1
B Bhanu Chander
  • 619
  • 2
  • 6
  • 17
  • and [this](http://stackoverflow.com/questions/4854442/embed-zxing-library-without-using-barcode-scanner-app) might interest you too.. – Krishnabhadra Dec 05 '11 at 08:21
  • 1
    Update: Android has a barcode scanner as of August14, 2015. See http://android-developers.blogspot.ca/2015/08/barcode-detection-in-google-play.html for more details. – Tasik Aug 18 '15 at 20:42

2 Answers2

22

Update: Barcode Detection is now available in Google Play services. Code lab, api docs, and a sample project.

There is no API in android. You have to use third party libraries. You can try Zxing. There are lot of discussions related to barcode scanning on stackoverflow. Search for them. Few are Using ZXing to create an android barcode scanning app.

Android: Is there a way to implement the barcode scanner into an app?

Community
  • 1
  • 1
anujprashar
  • 6,263
  • 7
  • 52
  • 86
  • 2
    I made a barcode reader library using the Google Vision API for those interested https://www.github.com/EdwardvanRaak/MaterialBarcodeScanner – Edward van Raak Apr 15 '16 at 22:32
  • Google mobile vision is now deprecated and replaced by ML Kit: https://developers.google.com/ml-kit/vision/barcode-scanning It provides sdks on both android and iOS and is getting actively improved with the latest google technology. For android, it provides sdks that can bundle the model and also provides SDK that can fetch model from Google play service automatically if you want to save your app's size. – Chenxi Song Mar 02 '21 at 21:46
5

No, Android doesn't have any inbuilt bar-code scanner api. I think use Zxing it support many formats for scanner. Also its now integrated for Android. So you can easily use this..

user370305
  • 108,599
  • 23
  • 164
  • 151