Sounds like you might have some sequencing issues. Did you call startPreview first?
On Jan 20, 2:51 pm, "[email protected]" <[email protected]> wrote: > Hi, thanks for the hint! I've tried that but I got this: > > java.io.IOException: autoFocus failed > > I registered the callback in CameraActivity.surfaceCreated() method. > > Could you advice on how to get that working? Thank you! > > On Jan 20, 5:09 pm, Dave Sparks <[email protected]> wrote: > > > Camera.autoFocus(cb); > > > where cb is a callback function you supply that tells you focus is > > successful or not. > > > On Jan 20, 5:27 am, "[email protected]" > > > <[email protected]> wrote: > > > Hi, > > > > My app is struggling to take focused shots. Is there a built in > > > facility that sets an auto-focus property on the camera, so it > > > automatically takes clear and focused images. I've noticed that > > > feature in numerous well-known apps such as ShopSavvy, > > > CompareEverywhere, etc. > > > > Could you advise on how to achieve that? > > > > Thank you. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

