I have no idea how to create a barcode scanner so I went Googling and it seems .... Integration ZXing library directly into my Android application.
stackoverflow.com