android


Fragments removed after Activity recreate


I am developing an app, where fragments are changing in the container of one Activity. I am using FragmentTransaction.replace(R.id.container, fragment, tag) to switch between fragments.
All fragments has setRetainInstance(true). When I press Home button and go back to app everything is ok, but when I turn on developers option "Don't keep activities" and do the same, I end up with "clean" activity where there is only the first (initial) fragment presents. In other words, after Activity is reinitialised all fragments are lost.
How can I avoid that and save fragments state?

Related Links

How to get view of hidden menu?
Android WEB RTC
how to avoid my app from starting automatically when i start facebook app
Android Studio project with old eclipse project structure disadvanteages?
ratingbar can not show current numStars
Execution failed for task Execution failed for task
Android Studio not rendering preview properly
Missing menu button on MasterDetailPage when assigning App.MainPage
FileObserver onEvent method not called saving videos
Android getting data from facebook json
How can I prevent Android Activity from entering portrait mode breifly when I have specified landscape?
Toolbar is not fully hidden on scroll
Why my Text to Speech setup does not initialize successfully?
Android camera auto exposure lock on taking multiple pictures
common www folder and all files for all platform in cordova
Android: get a handler to the app's icon from an SDK

Categories

HOME
search
c++11
fpga
twig
pyqt
zend-framework
mysql-workbench
yahoo-finance
graphics
ms-access-2016
google-apps
telegram-bot
gluon-mobile
recordrtc
pattern-matching
text-mining
jxl
libusb
do-while
linear-algebra
intershop
replication
google-maps-autocomplete
aggregation
flask-sqlalchemy
data.stackexchange.com
beautifier
opentk
pylons
carrierwave
google-earth
kodi
jmockit
gnat-gps
reverse
browser-extension
mnist
engine.io
protege4
docfx
sessionstorage
watchface
dcmtk
attributeerror
print-css
singleinstance
context-switch
android-testing
bbpress
monkey
trigger.io
django-1.10
rsa-archer-grc
smartfoxserver
stax
tinkerpop3
spring-cloud-feign
wso2developerstudio
pre-build-event
uiactionsheet
cycle2
piracy-prevention
libvlc
include-guards
fuelcms
opserver
doctype
visual-sourcesafe-2005
mod-proxy
eoferror
viola-jones
uvc
pseudo-class
human-computer-interface
tweenlite
unix-socket
verold
terminate
renderer
ie8-compatibility-mode
cmmi
nebula
font-awesome-4.0.0
twisted.web
redis-py
panda3d
hibernateexception
flex-mobile
collectionviewsource
commerceserver2007
ie-compatibility-mode
ajax-polling
openfaces
opml
burndowncharts
purepdf
interop-domino
sifr3
idatareader

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