Basic BarCodeScanner with AppState