开发者

Android: How to get product info after barcode scanning? [closed]

开发者 https://www.devze.com 2022-12-30 02:55 出处:网络
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this
Closed. This question needs to be more focused. It is not currently accepting answers.

Want to improve this question? Update the question so it focuses on one problem only by editing this post.

Closed 6 years ago.

Improve this question

Alright, so I'm trying to write a program for Android for a project for school, I fig开发者_如何学JAVAured out how to use Intents to scan, but once I find a product, how do I get that info into my app? For example, say I'm getting info from upcdatabase.com, I would just add the barcode number to the end of the url, but then how to I draw that data in? The same with Google search, how would I draw the data and the image of the item into the app?


UPCDatabase doesn't seem to provide a API or other queries to do a lookup. So if you have to use UPCDatabase i would try to use a HttpClient and make a GET to retrieve the data from the URL your build with your barcode. Then you have to somehow parse the result so that you will get the information you need.


No. upcdatabase.com provides webservice to access data, which is providig xml-rpc webservice to fetch and add items to their database, for more information, you can look into below link,

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

0

精彩评论

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