Yes, this is an atomic operation.
in a pseudo-field it looks like this:
void setNewOrientation(int state) { currentState = state; runOrientationChangedEvent(); }
And then usually Activity recreated. Only the re-creation of an Activity adds to the message queue, so you can see how quickly the orientation of the device changes.
You cannot start and end this process because it just changes a few int variables that can tell you about the current orientation, for example, the orientation :
getActivity().getResources().getConfiguration().orientation
or rotation
getWindowManager().getDefaultDisplay().getRotation();
This way you can only get the event after .
source share