Unset Orientation - Android android.app

Android examples for android.app:Screen

Description

Unset Orientation

Demo Code

import android.app.Activity;
import android.content.pm.ActivityInfo;

public class Main {

  public static void UnsetOrientation(Activity context) {
    context.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED);
  }//from w w  w. j  ava  2 s . c  o m

}

Related Tutorials