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
- How to integrate ZXing with the application
- How to get a image file from sd card onto the application
- 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.
精彩评论