I am suppose to get focal length of Camera. My target API version is 21+. I tried the following with help of the documentation:
import android.hardware.Camera;
private float getFocalLengthHere() {
float focalLength = Camera.Parameters.getFocalLength ();
return focalLength;
}
I encountered the following error:
Non-static method 'getFocalLength()' cannot be referenced from a static context
In documentation, I didn't found anything to call Focal Length with camera2.