Android Question Cameraex and parameters

grafsoft

Well-Known Member
Licensed User
Longtime User
Is there any method to get a list of parameters I can get and set on my device?
 

drgottjr

Expert
Licensed User
Longtime User
the os doesn't expose the parameters as a list. what it does expose is not in a particular useful form. if you look at the cameraex class or search for examples about it, you'll see how to get and set particular parameters. this is the way androird wants you to do it.

that said, i am attaching an image showing 1 way to capture the device's camera parameters and to display it as a "list". it involves adding 3 tiny lines of code to the cameraex class. on the particular device whose camera parameters i queried, the list was much longer than what fits in the log window.

there are other ways to achieve the same result. i chose what occurred to me first (given that the camera is already open when cameraex queries the parameters).
 

Attachments

  • parms.png
    parms.png
    81.7 KB · Views: 113
Upvote 0

drgottjr

Expert
Licensed User
Longtime User
god, what have i done! i hope you don't go off and do something serious based on this. everything is already in cameraex; reinventing erel's wheel is not time well spent.
i don't want to see you back here complaining that the list i showed you how to obtain doesn't actually help you control the camera's features.:)
 
Upvote 0
Top