title: Converting Focal Length in millimeters to pixels - Android
body: <p>In Android, I am currently accessing the <code>camera's</code> focal length by using <code>getFocalLength()</code> in <code>Camera1</code>. <code>Camera2</code> is not an option.   </p>
  
  <p>I am trying to full fill the current calculation: <code>focal_length_pix = focal_length_m * 1 (pix) / pixel_width_m</code>.  </p>
  
  <p>Basically this converts the <code>focal length</code> from <code>mm</code> -> <code>px</code>.  Now I know the <code>focal_length_m</code> variable but I am currently trying to figure out the <code>pixel_width_m</code> which is is the width of a pixel (on the sensor) in meters.</p>
  
  <p>I am struggling to find a way to calculate the width of a pixel on the sensor.  Any suggestions, ideas would be much appreciated.</p>