The ZXing “Zebra Crossing” project (
http://code.google.com/p/zxing/)
provides an open source barcode scanner implementation. You could
incorporate this into your button.
Or alternatively if the Barcode Scanner application (https://
market.android.com/details?id=com.google.zxing.client.android) is
installed you can use ZXing intents (also documented here:
http://www.openintents.org/en/node/97) to do the work for you.
Obvious downside is you would need to have this app installed as well
as your Thrutu button.
So looks like barcode scanning is easy enough. The next challenge
would be to locate the corresponding product information once the
barcode has been scanned.