Enabling screen rotate without app exiting

Newbie here. My app exited itself when my screen auto rotates (app was running web viewer, in case you ask for details) Is there any solution to that? Thanks in advance

That's weird; it's never happened to me before. This may be a possible bug.
Also, could you please show your relevant blocks?

to find out, why the app crashes, use logcat


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.