Удаление ограничений ориентации программно.

В моем манифесте я настроил действие, ограниченное портретной ориентацией. Но мне нужно снять это ограничение по условию. Итак, как мне программно удалить ограничения ориентации?

upd: мои текущие настройки:

    <activity
        android:name=".activity.MainActivity"
        android:label="@string/app_name"
        android:theme="@android:style/Theme.NoTitleBar"
        android:screenOrientation="portrait"
        android:configChanges="orientation">


 /**
 * Defines whether the device being used is a tablet and if so adds horizontal orientation option.
 */
     protected void _updateScreenOrientationModes(){
         if(((MyApplication) getApplication())._isTablet == true)
                setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED);
         }
14
задан user1384991 31 May 2012 в 09:12
поделиться