android - How to get detected barcode/QR automatically -


i have tried new google play services feature - barcode/qr scanner. in sample application scanning started taping on button , result returned on tap.

is there way change behavior return first detected barcode/qr immediately?

i not first 1 curious this.

thank in advance.

update!

for future readers can use this project, includes full screen preview on devices well. previous answer not solid implementation more of quick solution. github repository contains changes , check changelog well.

  1. mainacitivity.java
  2. barcodecaptureactivity.java
  3. camerasource.java
  4. barcodegraphictracker.java

Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -