Once the barcode scanner view is called, it starts looking for a barcode. However, if it can't find one, it just keeps on looking. There should be a timeout function that cancels the running of the scan. Maybe something on the order of 45 to 60 seconds? Once the timeout is reached, an alert message with "OK" and "try again" should be displayed to allow for either cancelling out and returning to the add food screen or starting the scan process over.
Once the barcode scanner view is called, it starts looking for a barcode. However, if it can't find one, it just keeps on looking. There should be a timeout function that cancels the running of the scan. Maybe something on the order of 45 to 60 seconds? Once the timeout is reached, an alert message with "OK" and "try again" should be displayed to allow for either cancelling out and returning to the add food screen or starting the scan process over.