title: Check if activity that used intent still alive
body: <p>I have two activities: <code>MainActivity</code> and <code>EventActivity</code>.</p>
  
  <p>Whenever I open my app (in <code>MainActivity</code> by default) and it has a certain flag in <code>SharedPreferences</code>, it intents to <code>EventActivity</code> and finishes itself. Otherwise, it only intents.</p>
  
  <p>In <code>EventActivity</code> I have a button that, when clicked, calls <code>finish()</code> and goes back to <code>EventActivity</code>.</p>
  
  <p>The problem is, when I re-open my application, it will finish the <code>MainActivity</code> and, when I press my custom back button, it will close the app (because the intent handle has finished).</p>
  
  <p>How do I check if <code>MainActivity</code> didn't used <code>finish()</code>?</p>
  
  <p>If I can do that, checking if it is finished I can intent to it.</p>
  
  <p>Thanks.</p>