开发者

How to Retrieve product id from bar code?

开发者 https://www.devze.com 2023-03-10 01:44 出处:网络
I have used bar code scanner application and my activity will open a bar code scan开发者_如何学Pythonner and it will successfully read the bar code.

I have used bar code scanner application and my activity will open a bar code scan开发者_如何学Pythonner and it will successfully read the bar code.

But how do I retrieve/fetch that bar code value/product id from it??

Because my application just redirects it into google for search of that product. I have used Zxing for it.

Regards, Sneha


com.google.zxing.client.android->CaputreAcitvity.java->handleDecodeInternally(Result rawResult, Bitmap barcode) Where you will find rawResult Result variable in this variable result is stored. Put Toast there and print value of rawResult varibale.
Don't forget to convert rawResult into String.

0

精彩评论

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