Adding implementation for setting the orientation. Works fine, but it works only on the current activity.