import android.content.pm.ActivityInfo; svoid aPortraitMode() { aActivity().setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); }