im trying to run a Camera Service in the Background, as soon after the Service has started i get an error takePicture failed. I\'m new to Android,new to Stackoverfl
takePicture failed
just add SurfaceTexture st = new SurfaceTexture(MODE_PRIVATE); mCamera.setPreviewTexture(st); before mCamera.startPreview();
SurfaceTexture st = new SurfaceTexture(MODE_PRIVATE); mCamera.setPreviewTexture(st);
mCamera.startPreview();