nisrulz / qreader

:white_square_button: [Android Library] Read QR codes using google's mobile vision api, but without the hassle
http://nisrulz.github.io/qreader
Apache License 2.0
371 stars 108 forks source link

Possible to handle a granted camera permission without restarting the activity? #54

Open Dima-369 opened 6 years ago

Dima-369 commented 6 years ago

Currently, the sample app calls restartActivity() in onPermissionGranted() on granting the camera permission.

Is it instead possible to handle this without re-inflating the SurfaceView or restarting the activity?

Using the QREader.Builder plus initAndStart() in onPermissionGranted() does not work on and still displays a black screen.

rohankandwal commented 6 years ago

I am too facing this issue, it's a blocker as of now.

MrSilverstein commented 5 years ago

Strategical Same here.