 <p>I have answered such a <a href="http://stackoverflow.com/questions/8440653/android-avoid-onresume/8440883#8440883">question</a>,you can declare <code>android:launchMode="singleTask"</code> attribute for your MainActivity in the AndroidManifest.xml file, so that the OS won't create a new instance if there is one running in the background.</p>