开发者

How to decode a barcode image using ZXing library in android

I am developing an application based on the zxing l开发者_如何学Goibrary using intent and I would like the user to be able to decode a barcode image that is stored on the sd card.

Since i am beginner in android,please tell me in detail about

  1. How to integrate ZXing with the application
  2. How to get a image file from sd card onto the application
  3. Finally how to decode the barcode image file and store the decoded result.

Thanking you.


Download the file from here.

This is a complete library. In it you will find an already-built Android Project. Just import it in Eclipse.

You will face packages missing problem. But in the downloaded library there is folder core in which you will find all the classes required. if not then proceed.

In the downloaded library you will find a android integration project. This code tells how to embed and use scanning in your application. It will call the already installed zxing app for scanning.

It would be preferable to have the scanning code within your app. So for that research on the CaptureActivity project and manipulate it as per your requirement. I had done it. It took time though. Just be good in Java. You will be able to do it also.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜