views:

335

answers:

2

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?

+5  A: 

Example here : http://code.google.com/p/zxing/wiki/ScanningViaIntent

RC
Sean 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
+1  A: 

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.

JasCav
You can talk back and forth, via Intents -- see answer above for an example of this very thing in action.
Sean Owen
@Sean - Very cool! Learn something new every day around here. Thanks!
JasCav