Android Question Scan Barcode in Background


Licensed User
Longtime User

I'm searching for a lib to take a photo and get the barcode (that will be at a fixed position).
There are many libs that handle barcodes. But I didn't found something that completely works in background.
So that no camera-image is shown to the user etc.

Any idea?



Well-Known Member
Licensed User
Longtime User
What do you exactly mean by background?
  • If you mean that the user will be running the activity, but no camera feed will be shown at any moment and only the detected barcodes will be reported to the activity--> You could try with the code HERE and add a non-transparent panel in front of the camera preview panel
  • If it has to run 'silently' even if the Activity is not active and the user won't notice it? --> Still possible, but some dirty hacks needed
Upvote 0