Question

In my camera application I'm using the Sony Camera Add On. I'm trying to allow the user to adjust the metering options manually. When I check the number of metering areas it returns 0 even though I know the phone has more than 0 (the default camera app allows metering adjustments).

parameters.getMaxNumMeteringAreas()

My guess is the OEM (Sony) is restricting the use of manually setting metering because I also think they restrict manual ISO settings. Is this the case or is this a bug in Kitkat or something else?

I've tested on a Sony Z1 4.4 & Sony ZR 4.3

Was it helpful?

Solution

If Sony's default application has metering modes, but the API does not support metering areas, then Sony has extended the default camera API to expose metering modes through some other path. Likely a custom camera parameter.

If you want to implement such metering modes in your own app, you'll have to figure out how Sony did the extension (one idea is to dump out the whole Camera.Parameters structure, and see if any of the names look promising).

However, anything like this you do will likely only work on that Sony device, and it's not even guaranteed that it'll work on Sony's other devices, unless Sony itself has made some statement about these features and how to use them (and how stable they are).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top