title: Android Activity singleton
body: <p>I have an activity called MainActivity. This activity launches a notification that has a PendingIntent that opens this MainActivity.</p>
  
  <p>So, to close the application, I have to click the back button twice. I would like to set up activity as singleton. I tried to set singleInstance or singleTask to manifest but this doesn't work. </p>