can anyone know how to get sensor size of camera in android device ?
Thanks
It's easy to get width and height of the sensor of the camera with Camera1 Api too. Get horizontal and vertical angle of views and focal length and the rest is little trigonometry.
Camera.Parameters params = mCamera.getParameters();
focalLength = params.getFocalLength();
horizontalViewAngle = params.getHorizontalViewAngle();
verticalViewAngle = params.getVerticalViewAngle();
A = Angle of view, l = focal length, h = sensor height/2 => tan(A/2) = h/l
For my device with focal length 1.15 mm and horizontal angle of view 54.8 degrees:
Sensor width = tan(54.8/2)*2*1.15 = 1.19mm
This value is same with what i get using method DomTomCat posted.