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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -