Android: Service start Activity
<p>The problem is: Service send me a data every 1 hour and i need to start Activity1. If i do nothing, its all the time will create the same Activity1 and in a 5 hours in stack i will have 5 the same Activities...So, how to kill activity before new one will start ?
Thanks !</p>

<pre><code>            Intent dialogIntent = new Intent(getBaseContext(), someClass.class);
            getApplication().startActivity(dialogIntent);
</code></pre>
