Android: How to get product information after scanning barcodes?

Ok, so I'm trying to write an Android program for a project for school, I figured out how to use Intents for scanning, but as soon as I find a product, how do I get this information in my application? For example, let's say that I get information from upcdatabase.com, I would just add the barcode number to the end of the URL, but then, how did I draw this data? The same with Google search, how would I draw the data and image of an element in the application?

+3
source share
2 answers

UPCDatabase does not seem to provide APIs or other search queries. Therefore, if you need to use UPCDatabase, I would try to use HttpClient and make a GET to retrieve data from the URL of your assembly using your barcode. Then you must somehow analyze the result to get the necessary information.

+2
source

No. upcdatabase.com provides a webservice for accessing the data provided by the xig-rpc web service for retrieving and adding items to your database, for more information you can see the link below.

http://www.upcdatabase.com/xmlrpc.asp

+2
source

Source: https://habr.com/ru/post/1744968/


All Articles