title: what are the appropriate launchMode and intent flag?
body: <p>I'm working with an android application that has three activities <code>A(Splash Screen) B(login) C(Home)</code></p>
  
  <p>My app works as following:</p>
  
  <p>1-<code>A(Splash Screen)-&gt;B(login)</code>: in the splash screen I check if the user is not logged in, start new <code>B(login)</code> activity</p>
  
  <p>2-<code>A(Splash Screen)-&gt;C(Home)</code>: in the splash screen I check if the user is logged in, start new <code>C(Home)</code> activity</p>
  
  <p>3-<code>C(Home)-&gt;B(login)</code>: in home activity the user can logged out, start new <code>B(login)</code> activity</p>
  
  <p>4-<code>Notificatioin-&gt;C(Home)</code>: when the user opens a notification from the notification area, starts new activity <code>C(home)</code></p>
  
  <p>Every thing is working fine except
  assume that I'm in <code>C(home)1</code> ,when I open a notification a new <code>C(home)2</code> activity is created then when I logged out new <code>B(login)</code> activity is also created, However when I pressed back button <code>C(home)1</code> is opened.</p>
  
  <p>what is the appropriate launchMode or flag intent for each activity?</p>