How to Retrieve product id from 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.
精彩评论