I am beginning the development of an app that accesses camera video data on an Android tablet. Currently, I am trying to display the preview from the camera in a SurfaceView. The SurfaceView displays the preview when I first run the app, but as soon as I rotate the device, the SurfaceView disappears. However, the data is still being collected as the camera is still receiving information -- just not displaying it.
Is there a way to fix the SurfaceView properties such that it will continue to preview the camera even after the device is rotated?