i have some spinners in my activity. The screen is set to lock after 2 minutes. After I unlock the screen, all of my spinners are reset. I think, that the onCreate method is called after unlocking. Is there some way, to set the activity not to recreate after unlocking the screen? The same happens when rotating the screen, but that's not the issue, i can set the layout to be portrait only.
Or maybe is there some setting, like for rotation, to prevent calling the onCreate method again?:
android:configChanges="orientation"
thanks.