florent37 / CameraFragment

A simple easy-to-integrate Camera Fragment for Android
Apache License 2.0
2.29k stars 422 forks source link

Camera Issue when using Samsung s8 #63

Open RHoumaidy opened 7 years ago

RHoumaidy commented 7 years ago

trow an exception:

java.lang.NullPointerException: at com.github.florent37.camerafragment.internal.manager.impl.Camera2Manager.openCamera (Camera2Manager.java:182) at com.github.florent37.camerafragment.internal.manager.impl.Camera2Manager.openCamera (Camera2Manager.java:56) at com.github.florent37.camerafragment.internal.controller.impl.Camera2Controller.onCameraClosed (Camera2Controller.java:174) at com.github.florent37.camerafragment.internal.controller.impl.Camera2Controller.onCameraClosed (Camera2Controller.java:31) at com.github.florent37.camerafragment.internal.manager.impl.Camera2Manager$4$1.run (Camera2Manager.java:225)

chnouman commented 7 years ago

have you tried to use runtime permissions.

RHoumaidy commented 7 years ago

sure, it works fine on any android 6 or android 7 device, except the Samsung S8