Reputation: 71
How to scan barcode in android device through an application. If the android device is connected to an external bluetooh barcode scanner adapter. What API's or sdk will be required for this.?
Actually I am new in android so there may be mistakes in my question too, so sorry for this.
But if there is any solution please tell me.
thanks in advance.
Upvotes: 2
Views: 2162
Reputation: 151906
Not sure about Bluetooth-connected barcode scanners, but nowadays you probably don't need one. The current recommendation is to use the Android Barcode API:
The Barcode API detects barcodes in real-time, on device, in any orientation. It can also detect multiple barcodes at once.
It reads the following barcode formats:
- 1D barcodes: EAN-13, EAN-8, UPC-A, UPC-E, Code-39, Code-93, Code-128, ITF, Codabar
- 2D barcodes: QR Code, Data Matrix, PDF-417, AZTEC
It automatically parses QR Codes, Data Matrix, PDF-417, and Aztec values, for the following supported formats:
- URL
- Contact information (VCARD, etc.)
- Calendar event
- Phone
- SMS
- ISBN
- WiFi
- Geo-location (latitude and longitude)
- AAMVA driver license/ID
Upvotes: 0
Reputation: 9005
You can use ZXING Library or Biggu Scanner..., For Biggu Scanner check this sample
Upvotes: 10
Reputation: 2336
I have found iScandit barcode scanner that is better than ZXING and biggu scanner.these 2 are not work when Barcode is not directly in camera focus but iScandit works on this situation amazingly.
Upvotes: 0
Reputation: 18978
This is advice for you. for scan bar code.
It may help you.
Install this app from market.
use this app within your application using intent.
Intent intent = new Intent("com.google.zxing.client.android.SCAN");
startActivityForResult(intent, 0);
Upvotes: -1
Reputation: 419
Upvotes: 0