android


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.

Related Links

Firebase analytics, custom events values
Android executable with wrong interpreter?
React native router flux - simulate android push
Onesignal android app notification in webview
Android service stops when executes wait() method
How to stream for real-time video streaming
Hide scrollbars in complete application
My App crashes when I click on the button which perform DBoperation(Retrieving and displaying data in ListView)
Sending and storing emoji with Android keyboard to Firebase
why ACCESS_COARSE_LOCATION needs to location must be enabled
Android AutoCompleteTextView - Dropdown Not Showing
Android strings.xml character count
Designing one to many relationships in an azure mobile app using entity framework code first
Android Studio: Auto Refresh view when editing the xml for a layout
SSL HTTPS android [duplicate]
How to fill background of website even when a mobile browser alters it's height on scroll?

Categories

HOME
algorithm
phpword
oracle12c
facebook-oauth
c++11
amp-html
serialization
saml-2.0
solver
appcelerator
rds
cq5
web-hosting
regular-language
zip
discrete-mathematics
pattern-matching
mql5
reactive-programming
resultset
activecollab
emoji
php-5.6
speech-synthesis
nancy
esoteric-languages
identity-management
production
replication
symbols
microsoft-ocr
joptionpane
event-store
gmock
strongname
xcode-ui-testing
ms-access-2003
entity-relationship-model
linked-data
browser-sync
tizen-tv
vex
android-gridview
apiary.io
hivemq
release
jvmti
linqpad
xmldocument
vaadin-charts
openal
netbeans6.8
geotiff
reindex
yii2-user
er-diagram
libjpeg
cpu-cache
template-toolkit
ampps
bootstrap-tags-input
rsa-archer-grc
restore
chromium-os
autosar
microstation
model-associations
hclust
delta
vorpal.js
eigenvector
cassia
kango-framework
gcloud-ruby
ellucian-scribe
iokit
avisynth
morton-number
cosine-similarity
sql-scripts
template-deduction
lnk
windows-phone-8-sdk
dtmf
facebook-timeline
boost-msm
boost-signals
usertype
cross-database
entity-attribute-value
screen-size
matlab-load
update-statement
uipagecontrol
cuteeditor
appledoc
presentation-layer
pos-for-.net
silverlight-oob
wcf-instancing
complex-event-processing
sifr3

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile