Why is OnCreate() being called when the app is "quit", this causes my initiliazation code to run multiple times
<p>So this should be easy I am sure I am just missing something.</p>

<p>in my OnCreate() method, I do most of my games initilization (oh by the way I am making a game!)...
in OnCreate I create a Panel, which is a class that extends view, and is responsible for all displaying. In the constructor of this panel I update a few linkedlist with objects to display, these objects are moveable by me in the panel (I can click an object, click a new spot, and the object is moved there) That all works fine!</p>

<p>Now if I hit the home button to leave my app, and come back, android remembers where I left my objects, and keeps them there! How kind of Android.
However the problem occurs when I hit the back button to leave my application (Which I guess is more like killing it, which means OnCreate() is called the next time my app starts. (I know OnCreate() CAN be called if I just hit the home button, but only when the phone needs some space and kills my app)
Anyways, when OnCreate is called again, Android so kindly remembers where the objects I moved are, but it does something else, it recalls all my initalization code, so there is duplicate objects, at the original location (aka now there is double the objects)..
How do i fix this? I tried this,</p>

<pre><code> if(savedInstanceState!=null) //see if android saved the state
       {
                 super.onCreate(savedInstanceState); //reload the state
           }
   else{
   super.onCreate(savedInstanceState); //I pass this savedinstancestate to OnCreate here even 
//though it is null,
//because I do not know what else to pass
//then i do the initilization crap all over again (because the savedinstancestate should have been 
//null and therefore it shouldnt display any saved data locations,
// but.... YET IT DOES!!!
}
</code></pre>

<p>Please help me with this! How do I either stop it from saving the state EVER and always let me load it how I want to or how do I make it so my init code is ONLY called when the game doesnt reload the state?
Thank you!! </p>
