When I call s3eCameraCaptureToFile(), it opens the camera app and I can take a photo and save it, but it still returns failure every time on my Samsung Galaxy S2 with Android 4.0.3, giving the error S3E_CAMERACAPTURE_ERR_CANCELLED, even though I chose to save the image. I'm using Marmalade 6.0.3.
I have tried with several different camera apps and they all fail.
Do others not have this problem?
I'm using S3E_CAMERACAPTURE_FORMAT_JPG, which should presumably be supported on all platforms. Interestingly when I call s3eCameraCaptureIsFormatSupported(S3E_CAMERACAPTURE_FORMAT_JPG) it returns neither S3E_TRUE nor S3E_FALSE as the docs say it should, instead returning 255, which appears to be S3E_WEOF. What's that about?
I tried PNG instead. s3eCameraCaptureIsFormatSupported() says it's supported, but in this case s3eCameraCaptureToFile() doesn't even open the camera app.
I tried the sample camera capture app, and it does indeed work, but I can't see any difference. It's just one function call so what can go wrong? My code is basically identical to the sample:
s3eResult result; static char path; memset(path, 0, 256); result = s3eCameraCaptureToFile(path, 256, S3E_CAMERACAPTURE_FORMAT_JPG);