-3

Possible Duplicate:
How to decode QR code

How can i use in an application the camera for scanning QR or bar code and show me the results?

    Intent intent = new Intent("android.media.action.IMAGE_CAPTURE");
    startActivityForResult(intent, 0);

What do i have to put then to capture the image and get the information of the product?

Community
  • 1
  • 1
cristian e
  • 69
  • 1
  • 5

3 Answers3

4

You need to use the XZing library in addition to the standard Camera APIs.

http://code.google.com/p/zxing/

Booger
  • 18,579
  • 7
  • 55
  • 72
4

I recommend you use ZXing library from google

http://code.google.com/p/zxing/

Android Barcode Scanner, uses that library and its performance is succesful

noni
  • 2,927
  • 19
  • 18
2

I have previously used zxing as a QR code capture library. It has worked very well for me. There is some good documentation on it too for Android.

Check out the getting started here.

Here is a good starter tutorial once you get going. http://www.androidaz.com/development/zxing-qr-reader-direct-integration

Tom
  • 15,798
  • 4
  • 37
  • 48