There's a screen rotation lock built into most androids.
Oh, is that so? Might've been my phone then, since it detects screen rotation even if it's locked.