Public class with only public static members
<p>I have a public class that only contains public static members.</p>

<p>I know this is not the best thing to do but I was just wondering why on my Android, if I pause the application, open a few others and come back to mine, all variables seems to be (null).</p>

<p>Questions:</p>

<ol>
<li>Is it because of some kind of a memory release made by Android?</li>
<li>What then could be a better way to keep such variables?</li>
<li>Is a class that extends Application a good option?</li>
</ol>

<p>Here is my code:</p>

<pre><code>public class Session {

public static String ID = null;
public static String UNIQID = null;
public static String TOKEN = null;
public static String SESSIONID = null;
}
</code></pre>
