The Android io card could not trigger autofocus


I am using -SDk in my application when i run the app i am not able to focus camera

Error: could not trigger auto focus: java.lang.RuntimeException: autoFocus failed.

app passed NULL surface any help?

write this code in your manifest file...

            android:required="false" />