unlock Activity Orientation - Android Activity

Android examples for Activity:Activity Orientation

Description

unlock Activity Orientation

Demo Code


//package com.java2s;
import android.app.Activity;

public class Main {
    public static void unlockActivityOrientation(Activity activity,
            int orientation) {
        activity.setRequestedOrientation(orientation);
    }/*from w  ww. j av a  2s . c  o m*/
}

Related Tutorials