I am using
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LOCKED);
to lock my app screen(programmatically), but in some devices if i call this method in landscape it rotate to portrait instead of locking the screen.
Any idea what goes wrong?