I added this in my onCreate method.
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
And now I want to determine which side user is trying to rotate the phone. How can I do that?
The user can't rotate the screen, but I want to determine weather he is trying or not.