title: Switch navigation tabs manually in Navigation drawer in Android
body: <p>I am using latest Lollipop style Navigation drawer in my app.Please refer to <a href="https://chris.banes.me/2014/10/17/appcompat-v21/" rel="nofollow">this example</a> for more info on that.I use Fragments to show different navigation tabs. Now, I need to open, let's say the 5th item in drawer when I click a certain notification from the notification bar in android device. I am stuck in as to how to switch directly to that Fragment by clicking notification. I  am very much aware as how this can be done using Activity. Can anyone please suggest me any solution regarding this ?</p>
  
  <p>Thanks in Advance. </p>
  
  <p>Resolved: </p>
  
  <p>I have resolved this issue by following Ziem's answer. I have just added following lines to open it as a new screen and clear older activity stack: </p>
  
  <pre><code>resultIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP
                  | Intent.FLAG_ACTIVITY_SINGLE_TOP);
  resultIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK
                  | Intent.FLAG_ACTIVITY_CLEAR_TASK);
  </code></pre>