def ScannerCall
Alert.show_popup('Alert1')
Rho::Barcode.take({}, url_for(:action => :scan_received))
end
def scan_received
Alert.show_popup('Alert2')
# If status is not 'ok', the scan was cancelled
if @params["status"] == "ok"
Alert.show_popup('Alert3')
#Rho::Log.info(@params["barcode"],"Barcode result")
else
Alert.show_popup('Alert4')
#Rho::Log.info("Cancelled", "Barcode result")
end
end