Java tutorial
//package com.java2s; import android.app.Activity; import android.content.pm.ActivityInfo; public class Main { public static void unlockOrientation(Activity activity) { activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_FULL_SENSOR); } }