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.
Currently, the sample app calls
restartActivity()inonPermissionGranted()on granting the camera permission.Is it instead possible to handle this without re-inflating the
SurfaceViewor restarting the activity?Using the
QREader.BuilderplusinitAndStart()inonPermissionGranted()does not work on and still displays a black screen.