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

Android Emulator window not displaying properly
Realm relation field always null
Appwidget: Button press on a widget changes TextView's text
How to filter list view of drawer?
Video broadcast with Android's Camera2 API
Android facebook isn't able to send/post to a friend using SDK 4.1
Requesting and allowing WRITE_EXTERNAL_STORAGE permission at runtime has no effects on the current session
DexIndexOverflowException in android
Using Android Studio click Run, the new code does not take effect
putting a variable inside a button or image declaration
Embed camera in Activity/Fragment like Instagram
How do I center the thumb of a seekbar in android?
Same value of latitude and longitude repeated
About START_STICKY in Service
Android Null pointer exception while using Async Task method [duplicate]
xBest Practice to check for NullPointerException

Categories

HOME
beautifulsoup
embedded
gridview
linkedin
spring-data-redis
cublas
limit
maxscript
zip
jetty
polling
frontend
opengl-3
rcloud
pattern-matching
syntaxnet
commonjs
watson-conversation
intercom
enterprise-architect
plink
qsqlquery
alpacajs
ag
kendo-mobile
r-mice
angular-routing
easeljs
highstock
resourcebundle
windows-server-2003
asymptotic-complexity
oculus
wcag
quantlib
twiml
jbutton
laravel-eloquent
reverse
navigator
apic
google-knowledge-graph
signals-slots
magento-1.9.3
stringtokenizer
apollostack
angular-http
drupal-theming
puredata
netbeans6.8
zenhub
check-mk
quicktime
redistributable
neon
nikeplus-api
udpclient
freepbx
upx
piracy-prevention
design-principles
phpgrid
state-restoration
concurrentmodification
dynamics-nav-2016
oracle-spatial
roadkill-wiki
finalbuilder
dulwich
rdflib
jsvc
graphics2d
gamekit
addressing-mode
genymotion-call
gii
dot42
amslidemenu
rfc5322
ie8-compatibility-mode
modular
server-administration
dopostback
pstack
jquery-blockui
boost-msm
interprocess
eclipse-marketplace
folding
build-environment
dsl-tools
windows-identity
wcf-proxy

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