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

c++ - How to add Crypto++ library to Qt project -

jQuery Mobile app not scrolling in Firefox -

How to use vim as editor in Matlab GUI -