Android garbage collector - when do static (class level) var get reset?
<p>How does Android handle static classes? In particular, if I declare a static variable like this:</p>

<pre><code>private static boolean someBoolean = true;
...
// Somewhere else in the code I do this:
    someBoolean = false;
</code></pre>

<p>Let's also say that that last line is the only time <code>someBoolean</code>'s value changes from its initialized value. How long will <code>someBoolean</code> stay <code>false</code>? How can the user reset this? Will force closing the app work? Do you have to uninstall the app? Clear its data? Its cache?</p>

<p>What if this static variable is in someone else's SDK? I think I understand how variables are re-instantiated when they're in the app code that I wrote, but what if this is code that's loaded from some jar -- when will <code>someBoolean</code> get re-declared and subsequently initialized to <code>true</code>? Similar to above, how can the user force this behavior? Force close? Clear data?</p>
