get Camera Info - Android Camera

Android examples for Camera:Camera Attribute

Description

get Camera Info

Demo Code


//package com.java2s;

import android.hardware.Camera;

public class Main {
    public static Camera.CameraInfo getCameraInfo(int cameraId) {
        Camera.CameraInfo cameraInfo = new Camera.CameraInfo();
        Camera.getCameraInfo(cameraId, cameraInfo);
        return cameraInfo;
    }//from w ww  .  j a  v a  2 s  .co m
}

Related Tutorials