Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Camera Shutter Counter [closed]

I wonder if there is any way to determine the camera shutter counter on an Android device. I want to know how often the camera has been used and how often the flash has been used. Is there any kind of API or system file I can use?

So far I checked Camera class.

Thanks in advance.

David

like image 846
David Avatar asked Nov 10 '22 14:11

David


1 Answers

There is no built-in counter like that. You can add it in your custom ROM.

Note that camera may be used to capture still pictures, or to record video, or to display camera preview e.g. for some augmented reality game. The game could save the preview frames in some format, or not. Also, advanced cameras can provide 1080p high quality preview.

When you plan to add a counter, consider if you want to count number of times the camera was opened, or duration of camera being in preview mode, or number of preview frames processed.

like image 107
Alex Cohn Avatar answered Nov 14 '22 23:11

Alex Cohn