I have one of my activities which I would like to prevent from rotating because I’m starting an AsyncTask, and screen rotation makes it restart.

Is there a way to tell this activity “DO NOT ROTATE the screen even if the user is shaking his phone like mad”?

16 Answers
16

Leave a Reply

Your email address will not be published. Required fields are marked *