How to Determine if Android Device has Camera Autofocus Feature

public static final String FEATURE_CAMERA_AUTOFOCUS was added in API level 7
Feature for getSystemAvailableFeatures() and hasSystemFeature(String).
The device's camera supports auto-focus.
Constant Value: "android.hardware.camera.autofocus"

1. Get a PackageManager Instance and save to myPackageManager.

2. Create a Boolean Variable named bolCameraAutoSupported

3. Set the Minimum and Target SDK version  to or greater. 

4. In the onCreate method, add the below code. This will return the Camera Autofocus ability to a boolean named bolCameraAutoSupported. It will then display a toast displaying the Camera Autofocus ability on the device to the user.

bolCameraAutoSupported = myPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_AUTOFOCUS);
if (bolCameraAutoSupported) {
Toast.makeText(this, "Device has Camera Autofocus ability", Toast.LENGTH_LONG).show();
} else {
Toast.makeText(this, "No Camera Autofocus ability!", Toast.LENGTH_LONG).show();
}

5. Compile and run!

Resources:
http://developer.android.com/reference/android/content/pm/PackageManager.html#FEATURE_CAMERA_AUTOFOCUS