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.
SearchManager with special characters
Can not create a complete android app using eclipse
An error occured while executing doInBackground() Twitter4J
Android weird object behavior
How to change the start posititon in a edittextfield
Live-stream video from one android phone to another over WiFi
Creating 'levels/maps' on canvas based game? [closed]
What are the limitations of ksoap2 library?
Android: Button doesn't respond suddenly
How to open an image file only using Built in gallery android?
Window Focus Disable in Android
How to draw a paragraph on canvas of a customview for android
Force Close When Clicking List Item. (Android) [duplicate]
Android Maps - Limit at 180 degrees
android: do I need different density copies for each resource? [duplicate]
android disabled seekBar without dimming