I want to create an alertbox whenever any app creates an camera object. But I am not able to access to activity in frameworks/base/core/java/android/hardware/Camera.java to create an alertbox.
Could you help me out how can I capture activity related to camera in frameworks/base/core/java/android/hardware/Camera.java.