EdwardvanRaak / MaterialBarcodeScanner

Easy to use barcode reader for your Android Project (Uses Google Mobile Vision API)
Apache License 2.0
272 stars 113 forks source link

Back Pressed #2

Closed vitormesquita closed 8 years ago

vitormesquita commented 8 years ago

When click on android button back de scanner restart. And the camera doesn't appears and it got the black screen.

If I click many times on the button this error happens :

java.lang.RuntimeException: Unable to destroy activity {br.com.beerplusapp.debug/com.edwardvanraak.materialbarcodescanner.MaterialBarcodeScannerActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.gms.vision.Detector.release()' on a null object reference

EdwardvanRaak commented 8 years ago

Does this happen to you with the example project? You can download the apk here: a.pomf.cat/ikbvco.apk