Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bar Code Scanner API [duplicate]

Tags:

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?

like image 990
B Bhanu Chander Avatar asked Dec 05 '11 08:12

B Bhanu Chander


People also ask

Can a barcode be scanned twice?

The bar code will program the scanner not to scan the same bar code twice in a row unless the bar code is removed from the scan field or a different bar code is scanned in between.

Can barcode be duplicated?

Yes. A copier with fairly decent resolution can copy a barcode so the copy can still be scanned with the same results. However, it's difficult to do this with barcodes on curved surfaces without removing the label and flattening it.

Can bar code be scanned?

2D imaging scanners can read both 1D and 2D barcodes. Most importantly for use with the ID123 app, these scanners can read barcodes displayed on phone screens.


2 Answers

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?

like image 170
anujprashar Avatar answered Oct 02 '22 19:10

anujprashar


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..

like image 28
user370305 Avatar answered Oct 02 '22 18:10

user370305