Search code examples
androidcamera2

Android 5.x Shutter Speed


I am trying to get supported shutter speed parameters but I am now sure how to get those ranges.

For ISO-values

String supportedIsoValues = camParams.get("iso-values"); //supported values, comma separated String System.out.println("supportedIsoValues: " + supportedIsoValues);

But I have no idea how to get supported shutter speed. How can I get a supported shutter speed?


Solution

  • Lets start with Camera from Android Devs. They tell us that starting with API 21 you should move over to android.hardware.camera2. There is a lot you can ask from a camera, it seems. Very informative, but not the answer you are looking for.

    This stackoverflow post's answer has the answer(s) you want.

    To be complete, here is PkmX's lcamera's example for the kind of codes you are looking for.