I am running a camera in a panel. If the camera is destroyed without releasing, the camera is locked out until a reboot.
Rotating orientation, causes my panel to disappear, which I am fine with, but camera gets locked.
Is there an event that fires before the rotation? I was hoping for Activity_pause, but that doesn't fire. I can tell if orientation changed, but it is too late then and the camera is toast.
I saw a post about how to do it in a service with a timer, but that doesn't seem real efficient battery wise putting the app in a perpetual loop, and it also detects after the rotation, not before.
thanks.