Search code examples
androidcamerabarcodezxingzbar

Use Barcode Scanner embeded in frame android


I want to create an app that scanned and get code from a qr-code barcodes.

In main layout I have a rectangle frame that show camera view [always app is open].

A textview is below of frame. enter image description here

When a qr-code put in frame code of barcode scanned and copied to textview.

How can I implement this idea?

How to customize barcode scanner library like zxing for that?

How to capture picture and get code of inside that?


Solution

  • This would require modifications to the zxing library. There is a third party project that added fragment support to zxing, you should check it out.