Most camera apps have an option to take a photo when volume buttons are pressed. I am trying to implement a background service that will send Volume Down keypress when the camera app is open. Here is what I tried so far for testing.
Create a service that has a SendInput object running inside a...