setRequestedOrientation

public PictureSelectionModel setRequestedOrientation(int requestedOrientation)

Change the desired orientation of this activity. If the activity is currently in the foreground or otherwise impacting the screen orientation, the screen will immediately be changed (possibly causing the activity to be restarted). Otherwise, this will be used the next time the activity is visible.

Parameters

requestedOrientation

An orientation constant as used in ActivityInfo.screenOrientation.