SurfaceView with camera preview is not destroyed
问题 I have a Tab Activity with 2 tabs (activities). Each tab has a 3d Open GL scene drawn on top of a SurfaceView with camera preview. Yet, depending on device orientation, tabs are being switched. The problem is that when the other activity starts, it calls camera.open(), which generates exception, saying that camera service is unavailable. In fact, the problem is that camera is not stopped when activity is paused, in other words onSurfaceDestroyed() is not called for the SurfaceView. I tried to