So I'm working on a project, and I'm wondering if there is a way I can implement the barcode scanner into my android app? So it would go from my app, open the camera and take the "picture", get the info, and go back to my app with that info?
4 Answers
Here is an example of a third-party library for scanning barcodes: https://github.com/zxing/zxing/wiki/Scanning-Via-Intent

- 3,041
- 3
- 22
- 28
-
1Sean here from the project -- yep this is exactly what you want. Use IntentIntegrator. It's like 10 lines of code to do exactly what you want. – Sean Owen Apr 29 '10 at 22:25
As I am not an experienced Android developer, I don't know if you can talk back and forth between applications due to sandboxing. However, there is a barcode scanner called zxing which is "an open-source, multi-format 1D/2D barcode image processing library implemented in Java. Our focus is on using the built-in camera on mobile phones to photograph and decode barcodes on the device, without communicating with a server."
Seems pretty solid, so I would recommend using that.

- 34,458
- 20
- 113
- 170
-
You can talk back and forth, via Intents -- see answer above for an example of this very thing in action. – Sean Owen Apr 29 '10 at 22:25
-
1
Android has its own barcode api
http://android-developers.blogspot.com/2015/08/barcode-detection-in-google-play.html?linkId=16316033

- 5,608
- 7
- 34
- 56
If you are more comfortable creating apps using App Inventor, there is a barcode module based off of the ZXing library: http://appinventor.googlelabs.com/learn/reference/components/other.html#BarcodeScanner

- 5,890
- 6
- 40
- 62