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.
RecyclerView - How to smooth scroll to top of item on a certain position?
Send back press event to underlying activity
Android AudioRecord return twice more data on read
Google Drive folder not recognized when trashed in Android app
get data of each android.hardware.camera2 frame before it is displayed on the surfacetexture
Write cloud code in Parse to check for unique username - Android
search for services in a local wifi network
html5 video play issue in android 4.2
Not able to get the SKU details in app purchase through Google Play Store
Padding doesn't work when aligned to bottom in Relative Layout
Check file type, return url if image, else return file if pdf
In Android, what is this feature called?
how to display a animated progress before image download using Universal Image loader
coding style in Android: when should you use a style instead of inline attributes?
Display javadoc and code completion