Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to set barcode formats? #3

Closed
jodaka opened this issue Aug 1, 2014 · 9 comments
Closed

how to set barcode formats? #3

jodaka opened this issue Aug 1, 2014 · 9 comments

Comments

@jodaka
Copy link

jodaka commented Aug 1, 2014

It seems that scanner only scans QRCodes, but I need to be able to scans products barcodes (like this one http://www.barcode1.in/wp-content/uploads/ISSN.jpg )

I couldn't figure out how to specify formats. Any help highly appreciated

@rusfearuth
Copy link
Owner

It scans different formates.

For instance,

@OverRide
public void handleBarcode(Result result, Bitmap arg1, float arg2) {
Toast.makeText(HelloAndroidActivity.this, result.getText(), Toast.LENGTH_LONG).show();
xf.restartScanningIn(200);
}

result contains information about format. Could you checkout result output and write it here?

@jodaka
Copy link
Author

jodaka commented Aug 2, 2014

At first I tried using original ZXing and after much struggling with integration into my app, it does scanned different formats. Though there was no portrait mode, so I decided to try this lib.

When I'm trying to scan a barcode on the product nothing happens. No callback gets fired. That red line keeps blinking for ever. I was able to scan exactly the same barcode almost instantly with original zxing.

And this lib seems to react only on QRcodes.

@rusfearuth
Copy link
Owner

You're wrong about "And this lib seems to react only on QRcodes". Could I get more information about you code?

@rusfearuth
Copy link
Owner

I don't know how to you connect this library, but in my test app everything is fine.

http://dl.dropbox.com/u/10179307/%D0%92%D1%8B%D0%B4%D0%B5%D0%BB%D0%B5%D0%BD%D0%B8%D0%B5_007.bmp

@jodaka
Copy link
Author

jodaka commented Aug 2, 2014

Could you maybe post your test app on github so I could compare and see what am I doing wrong?

@rusfearuth
Copy link
Owner

@jodaka okay, but I see that problem from your side.

@jodaka
Copy link
Author

jodaka commented Aug 2, 2014

Yep, I'm pretty sure the problem is somewhere in my code, but I can't figure out where exactly. And since it's not my personal project, I can't just share code :(

@rusfearuth
Copy link
Owner

@rusfearuth
Copy link
Owner

@jodaka Did library return any barcode? Probably, bug is in adding callback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants