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

How to access named pipes using JavaScript in Firefox add-on? -

multithreading - OPAL (Open Phone Abstraction Library) Transport not terminated when reattaching thread? -

node.js - req param returns an empty array -