Description
In recent versions of Android, even though the manifest may have indicated the WRITE_EXTERNAL_STORAGE permission, the user still needs to be asked for it at runtime. This tripped me up, because CameraKit was so good about handling the camera permissions, when I wanted to save the image that I just took, I couldn't understand why I wasn't allowed to write the image to the public shared media folder, until I read up on how this was one of the permissions that needs a runtime OK.
FR: Configurable option to handle WRITE_EXTERNAL_STORAGE along with the camera permissions, because it will be common for devs to want to save the image or video they just took.
In a perfect world, ckView.captureAndSaveImage() would handle the permissions, the Environment.getExternalStoragePublicDirectory, writeBytes, and MediaScannerConnection.scanFile.