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

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -