I have an app with several \'normal\' activities which can run on either landscape or portrait. They are designed for and mostly used on portrait.
This app has one s
I've put that in the mainActivity and it cancelled the rotation animation:
@Override
public void setRequestedOrientation(int requestedOrientation) {
super.setRequestedOrientation(requestedOrientation);
int rotationAnimation = WindowManager.LayoutParams.ROTATION_ANIMATION_JUMPCUT;
Window win = getWindow();
WindowManager.LayoutParams winParams = win.getAttributes();
winParams.rotationAnimation = rotationAnimation;
win.setAttributes(winParams);
}
More details here.