java - What happens to a static textview during onCreate() -


i have static textview has default value set in xml. later, set variable else, whenever orientation changes, value of static variable returns default, though i'm not reinitializing it. why might be? shouldn't value persist after oncreate() called?

when oncreate() gets called i'm guessing call setcontentview() normal. redraws of views default values. need handle configuration changes

see answer of mine on how handle it. recommended way use onsavedinstancestate handle myself , haven't had problems...yet


Comments

Popular posts from this blog

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -

python - How to create a legend for 3D bar in matplotlib? -