Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7623507
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T04:43:27+00:00 2026-05-31T04:43:27+00:00

I have searched this server for the answer to this question but I haven’t

  • 0

I have searched this server for the answer to this question but I haven’t found one. I have only found it for Android 2.0 (SDK 5). So does anybody know how to find out whether there is a camera in Android 1.6 application? Can I check if the camera has autofocus.

Thank you for your answers,
saric.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T04:43:28+00:00Added an answer on May 31, 2026 at 4:43 am

    Here is code to check if there is a camera ( https://developer.android.com/guide/topics/media/camera.html ):

    /** A safe way to get an instance of the Camera object. */
    public static Camera getCameraInstance(){
        Camera c = null;
        try {
            c = Camera.open(); // attempt to get a Camera instance
        }
        catch (Exception e){
            // Camera is not available (in use or does not exist)
        }
        return c; // returns null if camera is unavailable
    }
    

    From the Android Compatibility page ( https://developer.android.com/guide/practices/compatibility.html ):

    Android 1.0 through 1.5 required a 2 megapixel camera with auto-focus.
    However, with version 1.6, Android devices were permitted to omit the
    auto-focus capability, though a (fixed-focus) camera was still
    required. Some apps such as barcode scanners do not function as well
    with cameras that do not auto-focus. To prevent users from having a
    bad experience with those apps, existing apps that obtain permission
    to use the Camera were assumed by default to require auto-focus. This
    allowed Google Play to filter those apps from devices that lack
    auto-focus.

    Looking at the API here:
    https://developer.android.com/reference/android/hardware/Camera.html#autoFocus%28android.hardware.Camera.AutoFocusCallback%29

    It looks like they tell you to use a function that isn’t present yet.

    Unfortunately it may not be possible to check if the camera has auto-focus in Android 1.6.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have searched through google and SO for possible answers to this question, but
Apologies, but I have searched and read previous answers on this question but couldn't
I have searched and Googled for the answer to this question to no avail.
I've searched around a bit, but haven't found a satisfactory answer, so I'd like
I have searched for an answer but cant find an answer related to this.
Preface: I am sure this is incredibly simple, but I have searched this site
I have searched for this but nobody have the same issue.. Now I need
So I have searched for this but not finding anything about it and if
I have searched but can't find why this simple code will fail in Drools
I have searched through many times but have not seen this before. Probably really

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.