I am Developing an android application that should record the change state of the camera device in my phone in which every time I open the camera from any other application in my phone this application should save that application "X" open the camera at time "Y" and so on.
I have reached in my code to record the time that the camera was opened and close but I could not figure out how to discover the program name who has held the camera.