I\'m working on an app which has a custom camera screen, for which I\'m supposed to implement tap to focus, like in the Android(more specifically, the Galaxy S4) camera app.
One of the other answers causes your camera to discard the focus points previously given and return to continuous focus which I don't think makes sense.
Also if you take a look at the link in the post the original answer uses parameters.setFocusMode(Parameters.FOCUS_MODE_AUTO);
I've implemented the above with this line of code instead of Continuous focus and it seems to work much better.