I have noticed, that when android OS closes activities which are not in the top of activity stack, some of my static variables become null. I'm absolutely sure, the variables pointed to objects before and that I did not change their value by myself.
After activity recreation I get nullPointerException cause one of my static variable (which is initialized in Application's subclass onCreate and is supposed to be not null at any time of process lifecycle) is null.
Since its not me who nulls the variable, I suppose it is android OS which closes background activities and nulls static variables due to lack of memory. Is it possible?