Error with scan barcode

19 views
Skip to first unread message

Poonam Sharma

unread,
Sep 13, 2015, 11:54:02 PM9/13/15
to rhomobile
Hi 

This is my code to scan Barcode  for android phone. In Rho Simulator, I am getting this error :



Code :

 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


Thanks,

Poonam



Reply all
Reply to author
Forward
0 new messages