1 Activity, 2 Fragments and setting orientation
I have an Activity where the 1st Fragment (whose orientation is locked) solicits input from a user. This data is used to determine how to orient the 2nd Fragment. This orientation will also be locked. I am guessing I will have to make a call to setRequestedOrientation( ActivityInfo.SCREEN_ORIENTATION_PORTRAIT) either from the Activity or the 2nd Fragment. My question is where best to do this. Does it really make a difference? Can this action be performed w/o undergoing an Activity restart?
If changing the setRequestedOrientation state requires the screen to rotate then it will restart the activity. For example if you request ActivityInfo.SCREEN_ORIENTATION_PORTRAIT while the screen is in landscape, it will restart. However it will not restart if the phone is already in that orientation.
Ext.device.notification.show creating errors in Phonegap - Sencha Touch 2
How to compile Busybox?
Networking on Android NetworkOnMainThreadException
Action bars title´s text color
Why my animation keeps on last state?
Disable Appcompact_v7 inclusion: Android
Android Studio - Remove Module - IncorrectOperationException: Must not change document outside command or undo-transparent action
How to hide Android Soft Keyboard? [duplicate]
Genymotion will not load a virtual device
Uploading new APK with old keystore
Why I have different CheckBox styles in activity
How to get dialog by id
Android Design 2 Images and text LinearLayout
Change background color in another xml
GoogleMap V2 can't read a point to showing the Marker in the Map
Add one button to the left and another to the right in action bar