Camera issue "AutoFocus failed"


I’m trying to use the camera (SDK 32) and have set it up as per the documentation, but when I take a picture I get an error of “AutoFocus failed”, but I’m not even using it!

I tried adding it in in case it was throwing an error because the property wasn’t set, but it doesn’t make a difference.

Any ideas?


It’s ok, I sorted it.

It was caused by not setting a height and width for the preview.

I assumed it was a complete camera module (like the native camera), but it’s not. The code provided in the docs takes a picture, so you have to create the rest of the camera functionality yourself.

I think the docs should be updated to reflect this, and pretty much the same as ALL the rest of the documentation, some real examples would be a MASSIVE help.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.