title: Android Lollipop behavior change
body: <p>As per changes in Android Lollipop, reference : </p>
  
  <p><a href="https://stackoverflow.com/questions/27954026/lollipop-making-my-activity-stay-in-the-task-that-launched-the-share-intent">StackOverflow Question</a></p>
  
  <p><a href="https://inthecheesefactory.com/blog/understand-android-activity-launchmode/en" rel="nofollow noreferrer">Cheese factory blog</a></p>
  
  <p>I expect that when I start an activity of other application from my application, it should open in a new task even if the behavior is default (launchmode is standard). So, I made 2 test apps to verify the same behavior. But surpirisingly, the other app always opens up in my app's task, if there's no launchmode specified. I've tested this on Xiaomi Redmi Note 3 (5.1.1), Marshmallow emulator (x86), and the behavior is same for both. I'd appreciate some help on this, and also a link for reference from Android developer's site.</p>
  
  <p>Some code :</p>
  
  <pre><code>Launching app : 
  Intent intent = new Intent();
  intent.setAction(Intent.ACTION_SEND);
  startActivity(intent);
  break;
  
  App to be launched : 
  &lt;activity android:name="com.android.sample.launchdemo.ActivityB"&gt;
           &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.SEND"/&gt;
              &lt;category android:name="android.intent.category.DEFAULT"/&gt;
          &lt;/intent-filter&gt;
  &lt;/activity&gt;
  </code></pre>
  
  <p>On a button click from launching app, the intent is fired and activity B successfully opens up, but in the <em>same task</em>. Thanks in advance for any help/suggestions.</p>