ravi8x / Barcode-Reader

Android barcode reader using google vision library
BSD 3-Clause "New" or "Revised" License
294 stars 183 forks source link

callback in fragment #1

Closed martialDevOrange closed 7 years ago

martialDevOrange commented 7 years ago

Hi,

i use your library in a fragment that implements BarcodeReader.BarcodeReaderListener, but your code search for listener in the Main Activity... How to use it directly from fragment ?

ravi8x commented 7 years ago

@martialowt I have updated the example project by including Fragment integration. Please check these examples.

BarcodeFragment.java and BarcodeFragmentTestActivity.java https://github.com/ravi8x/Barcode-Reader/tree/master/example/src/main/java/info/androidhive/barcodereader

Also you need to use latest version of the library i.e 1.1.3

martialDevOrange commented 7 years ago

Thanks, it's ok, it works now :-)

I have 2 requests if possible:

and thanks again for your Library and your support

ravi8x commented 7 years ago

Okay. I'll consider your suggestions. However you are free to fork the repo and do the changes. I'll release them in next version.

Thank You