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