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

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

Categories

HOME
xml
httparty
turing-machines
gpu
youtube-data-api-v3
camera
solaris
sublimetext
scripting
vxml
web-hosting
babeljs
settings
code-coverage
trac
nstableheaderview
accessibility
drop-down-menu
heap
text-mining
project-intu
google-form
docx
do-while
capistrano3
atlassian-stash
vuejs
google-data-studio
wolframalpha
pyramid
sigma.js
nodemcu
babel
exit
monit
dapper-extensions
gpio
fragment-backstack
outliers
intersystems-cache
quantlib
userdefaults
aws-codecommit
quickfixj
biztalk-rule-engine
modalviewcontroller
parse-tree
protein-database
sim-card
skylink
wmp
android-ibeacon
bindingnavigator
knime
flask-login
opennms
geotiff
launchctl
twilio-click-to-call
singleinstance
stdmap
wpas
rmongo
simplepie
mta
qiime
kendo-upload
character-replacement
opl
qt5.2
r-package
vigenere
lazybones
flock
django-urls
.bash-profile
atoi
dulwich
haskell-warp
cwrsync
teamcity-9.1
kubuntu
exceldatareader
teaspoon
entry-point
linkedin-jsapi
terminate
windows-embedded-standard
bin
scrypt
observium
gpars
http-status-code-410
xcode3.2
os.system
adobe-media-server
httponly
expression-blend-4
catransform3d
update-statement
lr
timertask
ie-compatibility-mode
maven-1
application-verifier
tabpanel
pagemethods
image-capture

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