title: How to close any activity of my application by clicking on a notification?
body: <p>When I click on a notification apply the following:</p>
  
  <pre><code>intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);
  startActivity(intent);
  </code></pre>
  
  <p>In all "startActivity" of the app I applied the next flag:</p>
  
  <pre><code>intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);
  </code></pre>
  
  <p>The startActivity my notification does the following: 
  Call activity "Splash" and is called "Main".</p>
  
  <p>Casulidad If I was in "Main" pulse notification, closes the current (working properly). 
  But if I am in the activity "News" and pulse the notification, I have 2 activities open, the new "Main" and the former "News".</p>
  
  <p>How to close any activity of my application by clicking on a notification?</p>