Reading barcodes with android

后端 未结 4 1357
青春惊慌失措
青春惊慌失措 2020-12-22 19:15

Hi I am developing an application for the android htc hero. I am looking into ways of using the inbuilt camer to read 2D barcodes and extract the string returned from the ba

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-22 20:03

    Android programs can interact with eachother using intents. Intents are a little like remote procedure calls: you ask the other program for a certain action (e.g. scan a barcode) and the other program will perform this task for you. The result is returned when the task is complete.

    If the user has installed the ZXing Barcode Scanner, you can just use an intent to scan a barcode. The Barcode Scanner will then start, let the user scan the code and return the result to you.

    More information about this scanner can be found on the Google Code page of this project: http://code.google.com/p/zxing/wiki/ScanningViaIntent

提交回复
热议问题