Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/zkrige/zbar-android
- Owner: zkrige
- Created: 2014-05-11T06:55:18.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-10-06T15:52:47.000Z (about 7 years ago)
- Last Synced: 2024-04-18T14:09:10.553Z (7 months ago)
- Language: Java
- Size: 1.57 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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;
}
}
```