java - Error in taking multiple picture in one second on Android -


i want use android take multiple images in 1 second. basic idea use timer @ fps trigger camera capture images.

the problem when want trigger camera more 1 times in 1 second, every 500ms, there error in startpreview. java.lang.runtimeexception: startpreview failed

how can fixed this?. thanks.

you should call startpreview() in onpicturetaken() callback, , nothing guarantees callback activated @ frame rate expected. many cameras provide burst-shot mode, there no common api yet. hopefully, api will arrive.


Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -