| 
O.P.  Android dev - camera focus
 Hey guys! I'm making some Android apps, and dealing with the camera has been puzzlingly for me. 
 
Currently, I have a frame and I can show the camera image (live, of course) and take pictures. However, focus don't change. I tried setting the parameter to "FOCUS_MODE_CONTINUOUS_VIDEO", hoping it would re-focus continuously, but it didn't. Perhaps it works while recording videos, but reading the description seems it should work while just capturing and showing on the screen. 
 
Then I tried to make a routine to call autoFocus() periodically, but this solution is not good because the focus adjust doesn't happen smoothly - actually, it's very annoying to see the focus changing all the time. 
 
So I realized that the AutoFocusCallback can tell me whether the image is focused or not after executing the autoFocus(). This is partially good, because I can stop re-focusing once the focus is ok, but I don't know how to detect later if the object has changed and the picture needs re-focusing. 
 
Alternatively, I'd like to focus where I'm pointing at, just like the built-in camera app. Is that hard to do? 
 |