Switching between views in android data retained if any
<p>I am new to android development (and also a java newbie) and I noticed that when I switch between views I noticed that any variables declared as static in the view class retains its value but the rest are gone. So I have the following questions if some one is kind enough to answer --</p>

<ol>
<li><p>When to use static for variables if any?</p></li>
<li><p>If I want to retain the state of say my game between these switches (say to see the score or something), what is the way to do it? Is it by using static variables in the class to store everything? If so how do I reset the variables for a new game?</p></li>
</ol>
