import android.hardware.Camera;
import android.hardware.Camera.CameraInfo;
CameraInfo cameraInfo = new CameraInfo();
for(int x=0; x < Camera.getNumberOfCameras(); x++){
Eclipse is complaining about: import android.hardware.Camera.CameraInfo;
saying it doesn’t exist. Also, Camera.getNumberOfCameras() is not showing up as a valid method for Camera class.
Check the android platform version of your project in eclipse. CameraInfo didn’t get added to the SDK until API Level 9 (Android 2.3) so in versions older than that, it won’t be found.