Camera always returns resultCode as 0

前端 未结 5 813
小蘑菇
小蘑菇 2021-01-04 10:40

I am trying to develop using camera in my android application.

The problem is that the camera always returns a result code of 0, irrespective of if I press done or c

5条回答
  •  臣服心动
    2021-01-04 11:30

    As per the comments section, the reason that the resultCode was returning 0 (meaning the result was cancelled) is because when taking a picture to save to the SD card, you need to add the WRITE_EXTERNAL_STORAGE permission to your manifest.

提交回复
热议问题