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

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

Categories

HOME
uml
kentico
twitter-bootstrap-3
turing-machines
api
ecmascript-6
jax-rs
components
hessian
package
jsf-2.2
owl-carousel
yandex
tvos
angularfire2
boto3
okhttp
fabric.io
categorical-data
datastage
symbol
gruntfile
mvc-mini-profiler
imessage
sencha-touch
symbols
r-mice
dataflow-diagram
easeljs
mongoid6
fragment-backstack
ntp
kudu
deltaspike
glib
spring-security4
clickjacking
keras-layer
xajax
engine.io
reason
parse-tree
graphhopper
projects-and-solutions
loading
azure-arm
magento-1.9.3
plaintext
portforwarding
dapper-simplecrud
optimizely
ntvs
openrasta
corruption
arq
taocp
parfor
jodd
jquery-jscrollpane
synonym
android-dateutils
vorpal.js
pre-build-event
google-query-language
qiime
cfchart
fiware-monitoring
vigenere
slash
sony-lifelog-api
atoi
sha512
mraid
bufferedinputstream
public-html
pseudo-class
deform
easyrtc
punycode
formview
entry-point
device-tree
universal-image-loader
reflector
grails-plugin-rabbitmq
tinyxml
memset
clickbank
isqlquery
process-explorer
wp7test
device-width
vfs
boost-signals
objectquery
apache-commons-dbutils
google-maps-mobile
saxparseexception
xcelsius
entitydatasource
w3c-geolocation
msr
luajava
undefined-index
rowlex
perl5.12
linfu-dynamicproxy
xslcompiledtransform

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App