Minimizing android game
<p>Im programming a game for android and lately i have found an issue when minimizing it. Basicaly the game wont stop when minimized and is still performing the code.</p>

<p>I overrided the onPause() and onResume()</p>

<pre><code>@Override
public void onPause()
{
    super.onPause();
    ((com.anderiel.atomic.defense.AtomicDefense)MyCustomView).Pause();
}

@Override
public void onResume()
{
    super.onResume();
     ((com.anderiel.atomic.defense.AtomicDefense)MyCustomView).Resume();
}
</code></pre>

<p>adding to them the code that should stop the game code when it is paused. It works quite fine if I pause the game by myself (going to pause menu). But when i minimize it and then maximize it once again, no pause happens.</p>
