Search code examples
androidemailandroid-layoutcameraandroid-camera-intent

Take a picture on android camera without click on button or screen


I want to receive a code through SMS from other device in BroadcastReciever and on that code receive open camera activity immediately and take a picture of surrounding and then close camera automatically if any one understand me help me.


Solution

  • NO

    That would be a security breach !

    Android's camera API doesn't allow photos to be taken automatically without the knowledge of the end user.

    However, you could write your own custom camera App and try to build this feature on top of it.