Re: Issue 112 in zxing: Add list of barcode formats to Intent-invoked scanning on Android

8 views
Skip to first unread message

zx...@googlecode.com

unread,
Feb 5, 2010, 2:35:57 PM2/5/10
to zx...@googlegroups.com
Updates:
Status: Accepted
Owner: srowen

Comment #4 on issue 112 by sro...@gmail.com: Add list of barcode formats to
Intent-invoked scanning on Android
http://code.google.com/p/zxing/issues/detail?id=112

OK time to fix this one, patch attached for consideration.

Attachments:
Issue_112.patch 12.2 KB

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

zx...@googlecode.com

unread,
Feb 9, 2010, 4:19:11 AM2/9/10
to zx...@googlegroups.com
Updates:
Status: Fixed

Comment #5 on issue 112 by sro...@gmail.com: Add list of barcode formats to

Intent-invoked scanning on Android
http://code.google.com/p/zxing/issues/detail?id=112

You now have an Intent extra called SCAN_FORMATS which can contain
something like
"EAN_8,EAN_13" to manually specify the formats to scan. The old method
still works.

zx...@googlecode.com

unread,
Feb 9, 2010, 4:21:12 PM2/9/10
to zx...@googlegroups.com

Comment #6 on issue 112 by geoff.br...@gmail.com: Add list of barcode
formats to Intent-invoked scanning on Android
http://code.google.com/p/zxing/issues/detail?id=112

Haven't tried it yet but looks like a good job. Just what was needed. Well
done!

zx...@googlecode.com

unread,
Mar 20, 2010, 1:32:25 AM3/20/10
to zx...@googlegroups.com

Comment #7 on issue 112 by brad.drehmer: Add list of barcode formats to
Intent-invoked scanning on Android
http://code.google.com/p/zxing/issues/detail?id=112

Hi guys,
putExtra("SCAN_FORMATS", stringDesiredBarcodeFormats);
doesn't seem to be working for me in BarcodeScanner3.21b1 or
BarcodeScanner3.2.
I am trying to scan "UPC_A" or "UPC_A,UPC_E", but in both cases it is still
scanning
EAN_13. It also scanned UPC_A and EAN_13 when I had specified "QR_CODE".
I haven't
really tried other combinations of code types as I have a limited number of
samples
to work with. "SCAN_MODE" does work because when I use "QR_CODE_MODE" it
can't scan
either of UPC_A or EAN_13, so I think it is maybe a problem
with "SCAN_FORMATS"? Or
maybe I am doing something wrong.
I am planning on adding the option for the user to specify which code types
that they
want to scan to my project http://code.google.com/p/android-pcbcr.
Regards,
Brad

zx...@googlecode.com

unread,
Mar 20, 2010, 1:21:14 PM3/20/10
to zx...@googlegroups.com

Comment #8 on issue 112 by brad.drehmer: Add list of barcode formats to
Intent-invoked scanning on Android
http://code.google.com/p/zxing/issues/detail?id=112

I don't have my system setup to debug the BarcodeScanner code, but I think
I may see
what the problem is. I think that the 'parseDecodeFormats(Intent intent)'
method in
'CaptureActivity.java' is missing a 'return formats;' line after the for
loop...looks
like it will always return null for "SCAN_FORMATS".

zx...@googlecode.com

unread,
Mar 21, 2010, 11:06:10 AM3/21/10
to zx...@googlegroups.com

Comment #9 on issue 112 by sro...@gmail.com: Add list of barcode formats to
Intent-invoked scanning on Android
http://code.google.com/p/zxing/issues/detail?id=112

Good eye, I committed that fix.

zx...@googlecode.com

unread,
Apr 2, 2010, 3:31:09 PM4/2/10
to zx...@googlegroups.com

Comment #10 on issue 112 by brad.drehmer: Add list of barcode formats to
Intent-invoked scanning on Android
http://code.google.com/p/zxing/issues/detail?id=112

Looks like it is working now in v3.22, thanks.

Reply all
Reply to author
Forward
0 new messages