Search code examples
androidzxingbarcode-scanner

Using ZXing natively to get information of product using barcode number


I am developing an app which uses barcode to get the product information of food items after scanning the barcode.

I don't want the user to install ZXing barcode app separately so I embedded the ZXing code into my project.

So I was able to obtain the barcode ID number. But I do not know how to get the product information like name, manufacturer, price etc from the number using ZXing code. Since I am somewhat new to android, the ZXing code of retrieving product information is difficult for me.

So I need the basic steps on how to retrieve product information from the barcode Id.

Please help..


Solution

  • Zxing project does not provide you any information about the manufacturer of the product. You have to do it on your own. Barcode can be read using ZXing and you have to check the corresponding number related to the product which is pre-configured in your database.