I've made a little App for android with Zxing Intent, but it has a problem, because google goggles receives the Intent and do nothing, because it's not capable of decoding barcodes. Is there a way to restrict google goggles, but not other Barcode scanners?
Asked
Active
Viewed 654 times
1 Answers
2
Google Goggles does decode barcodes. Which Intent?
You can restrict to Barcode Scanner by calling Intent.setPackage("com.google.zxing.client.android")
though this would also exclude apps like Barcode Scanner+.
The better solution is to use the IntentIntegrator
code supplied from the project. There you can supply the names of packages you want to include, and could use TARGET_ALL_KNOWN
minus the Goggles packages if you wanted.

Michael Myers
- 188,989
- 46
- 291
- 292

Sean Owen
- 66,182
- 23
- 141
- 173