My phone crashes after i pause my camera app, then switching back and take a picture. This only happens on my Samsung Galaxy S, on my Huwai device it totally works. I have f
There is an IOException thrown (Could not find method java.io.IOException.), however the IOException constructor used was introduced in API level 9, so it doesn't exist on the Galaxy S and it shows a strange log instead.
About your problem, I would suggest trying to call lock() before release() :
camera.stopPreview();
camera.lock();
camera.release();
this.camera = null;
I don't know if this will work but in this source code, I found a comment which says :
// If we don't lock the camera, release() will fail.
camera.lock();
camera.release();
It seems clearly related.