added a check to make sure the barcode scanner app is installed before
using it.