My problem is simple - I have one class that extends SurfaceView. I already made some rendering code and tested it. I render on SurfaceView in another thread using holder.lockCanvas(null) surrounded by try{...rendering code...}finally{if(canvas!=null)holder.unlockCanvasAndPost();}
But when I connected the camera I saw tons of "exception locking canvas" messages. It seems that camera locks SurfaceView when preview started, and unlocks when it stopped.
This is my problem, please help