• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Camera App taking a Picture all by itself

Mayrhofer

Lurker
Hy, I am trying to make a app that does a few things when i press the start button.

My problem is that the process should contain that the camera takes a photo after a given time (ofc setting the time is no problem).

Does anyone maybe know if there is a easy way to capture a picture and store it without pressing a button. I tried it with the MediaIntent(Capture Image) - but this one got a GUI and i always need to press "capture" before my pic gets stored..

Would be nice if anyone can help me (prefered with code snippets or sth like that)
 
Well you should tie the capturing of the photo with the rest of your process.
I would help you more if you could provide the source code, because I think you are just missing some point.
 
Thanks for your answer, but i already solved my problem.

I didn't know that the main UI shut down if it doesn't get a replay in 5 seconds.
i added a Thread where the picture gets taken and this solved my problem :)
 
Back
Top Bottom