Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zkrige/zbar-android

Android dropin to scan barcodes using ZBar
https://github.com/zkrige/zbar-android

Last synced: 22 days ago
JSON representation

Android dropin to scan barcodes using ZBar

Awesome Lists containing this project

README

        

ZBar-android
============

Android dropin to scan barcodes using ZBar (original source : https://github.com/herbyme/zbar)

Usage:
======
1. add zbar-android as a library dependency to your project
2. declare the activity in your android manifest as follows
```

```
4. start the barcode scanner
```
Intent intent = new Intent(this, BarcodeScan.class);
startActivityForResult(intent,999);
```
5. get barcode result
```
protected void onActivityResult(int requestCode, int resultCode, Intent intent) {
switch (requestCode) {
case 999:
if (resultCode == RESULT_OK) {
String barcode = intent.getExtras().getString("barcode");
}
break;
default:
break;
}
}
```