How to capture camera image without user interaction using Android

I am developing an application that automatically captures an image and saves it on an SD card when the application starts. (ie) without any user interaction after initializing the application. I heard that with the help of intentions we can take pictures, but interaction with the user is necessary. Therefore, I used camera classes. But he did not work. I came across different posts, but nothing seems useful. Can anyone give me a suggestion?

+4
source share
1 answer

You can go through the next tutorial and it will serve your purpose. I had a similar requirement, and I used this code to work it!

Camera API

See Section 4 Using the Camera API

+4
source

All Articles