為啥我獲取不到照相機啊
?java.lang.RuntimeException: Unable to resume activity {com.example.administrator.youji/com.example.administrator.youji.CameraActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.hardware.Camera.setPreviewDisplay(android.view.SurfaceHolder)' on a null object reference
2019-06-05
先檢查權限
權限沒問題的話, 查看camera和holder的初始化的位置, 是否在調用的時候已經(jīng)初始化完成