The screen orientation changes too often

Problem: Some people simply cannot stand it when the screen orientation of their Android phone changes whenever they lie down or make a quick hand movement when typing. This, in fact, can be a bit irritating, but you can easily deal  with it.
Solution: All you have to do is turn off the auto rotate option. To do that, go to Settings > Display, gestures & buttons and uncheck Auto rotate screen.  Done! The screen will never rotate without your permission!