Android camera focus problem, ask big God weapon.

Source: Internet
Author: User

============ Problem Description ============


Looked up some information, did not find, mobile phone camera focus on the selected area of the method, like a millet camera, click on which. Where the display is particularly clear of that function, ask the big God how to do this function ....

============ Solution 1============


Focus on this issue, earlier versions were not resolved. Android 4.0 new camera class, there is a Setfocusareas method to set the focal length.

Early riser SDK because the phone variety is not aligned, some lack of hardware support, so there is no unified focus interface, the new SDK has appeared.

============ Solution 2============


This is for hardware support, not all camera can.
First call Getmaxnumfocusareas () to see if support, Google's note:
Before using this API or {@link #setFocusAreas (List)}, apps should
Call {@link #getMaxNumFocusAreas ()} to know the maximum number of
Focus areas first. If The value is 0, focus area is not supported.

Android camera focus problem, ask big God weapon.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.