code: public void setActivityOrientation(int orientation)
  	{
  		Activity activity = getCurrentActivity();
  		if(activity != null){
  			activity.setRequestedOrientation(orientation);	
  		}
  	}
docs: Sets the Orientation (Landscape/Portrait) for the current activity.
  
  @param orientation An orientation constant such as {@link android.content.pm.ActivityInfo#SCREEN_ORIENTATION_LANDSCAPE} or {@link android.content.pm.ActivityInfo#SCREEN_ORIENTATION_PORTRAIT}