title: Android LaunchMode Does Not Work
body: <p>I started an temp activity from notifiation, just show some text messages.Whatever I set launchMode=singleInstance or noHistory=true, The temp activity showed last time will show again when enter from "Recent open". I want temp activity to be shown only if I clicked notification, don't show in the "Recent open". Thank you in advance.</p>
  
  <pre><code>    &lt;activity
          android:name=".NotifiticationDialog"
          android:launchMode="singleInstance"
          android:noHistory="true"
          android:theme="@android:style/Theme.Translucent.NoTitleBar" &gt;
  
  
              Notification notification = new Notification(R.drawable.icon, context.getString(R.string.app_name), System.currentTimeMillis());
              Intent intent = new Intent(context, NotifiticationDialog.class);
              intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);
              PendingIntent activity = PendingIntent.getActivity(context, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT);
              notifycation.setLatestEventInfo(context, context.getString(R.string.app_name), message, activity);
              notifycation.flags = Notification.FLAG_AUTO_CANCEL;
              _nm.notify(NotifiticationDialog.ID, text);
  </code></pre>
  
  <p>EDIT:
  @Lalit Poptani, I tried what you suggest, but it is not waht I need. After I click temp activity with android:excludeFromRecents="true", My app disappeared in "Recent".(user can't find it, my all activity is excluded)</p>
  
  <p>EDIT:
  Fact: I have 3 tmp activity showing some text just like toast did, 2 were opened from widget and they didn't mixed with app stack. 1 were opend from notification, it always show itself individually from "Recent".</p>
  
  <pre><code>    &lt;activity
          android:name=".AppwidgetDialog1"
          android:launchMode="singleInstance"
          android:noHistory="true"
          android:theme="@android:style/Theme.Translucent.NoTitleBar" /&gt;
      &lt;activity
          android:name=".AppwidgetDialog2"
          android:launchMode="singleInstance"
          android:noHistory="true"
          android:theme="@android:style/Theme.Translucent.NoTitleBar" /&gt;
      &lt;activity
          android:name=".NotifiticationDialog"
          android:excludeFromRecents="true"
          android:theme="@android:style/Theme.Translucent.NoTitleBar" &gt;
  </code></pre>
  
  <p>
  </p>