How can I send take a picture command to the in-built (default) camera app?
Suppose the camera app is running in the foreground. Now, instead of tapping on the on-screen camera button I would like my background service ask the camera app to take a picture. How can this be achieved?
I understand the possibility of sending an intent to the camera app, but that would then need a tap on the on-screen button to take a picture, or creating my own custom camera app which can then be controlled. But I am looking for a way (legal or hack) to make the in-built camera app receptive to my take a picture command.
We have these phones with physical camera buttons, pressing which triggers something and convey a message to the camera app to take a picture. Can I somehow trigger that something from my background service?