BarcodeScanner was broken because I was using an outdated version of the API. Fixed that based on the BarcodeDemo.