I am trying to stop my app from resetting whenever the user flips the screen. I don’t really want to set it to portrait permanently.
My problem is I have settings which erase and a service which stops each time the screen flips. I would like to keep things as they are regardless of the screen orientation.
On your Activity in your AndroidManifest, set the following:
This tells your Activity to not “re-create” itself on screen orientation changes or keyboard change state