android - Does onSaveInstanceState always save my Member variables in Fragment? -


i switch fragment when ondestroyedview() called,member variables kept, , when ondestroy() called, restore them bundle, because onsaveinstancestate called before ondestroy().but face problem member variables reset initial values,i have lots of documents don't know why happen?

does onsaveinstancestate save member variables in fragment?

no. onsaveinstancestate() saves whatever put in bundle passed in parameter. values out of bundle in oncreate() or other fragment lifecycle methods.


Comments

Popular posts from this blog

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -