Been working on an app that uses the camera to create an image. If I use an older Corona build (2769) where it requests the permissions up front, everything is OK, the image is taken and can be rendered in the app.
Using a current daily build (2838) where it asks for permissions on the fly, I allow it permission to access the files, then access the camera, take the picture but then no image in the app. Error from Android Monitor is:
java.io.FileNotFoundException: /storage/emulated/0/Pictures/Picture32.jpg: open failed: EACCES (Permission denied)
Build.settings has the following permissions:
“android.permission.CAMERA”,
“android.permission.WRITE_EXTERNAL_STORAGE”,
The code simply uses:
media.capturePhoto(
{
listener=onDidSelectPhoto
})
Then the image is returned as a display object (however not in this case!).
I’m assuming its missing the storage permission. Any ideas what I have missed or am doing incorrectly?