singleTask and singleInstance not respected when using PendingIntent?
I have an activity with launchMode set to singleTask: <activity android:name="com.blah.blah.MyActivity" android:launchMode="singleTask"> </activity> I have an ongoing notification with a PendingIntent that launches that activity: Intent activityIntent = new Intent( this, MyActivity.class ); TaskStackBuilder stackBuilder = TaskStackBuilder.create( this ); stackBuilder.addParentStack( MyActivity.class ); stackBuilder.addNextIntent( activityIntent ); PendingIntent resultingActivityPendingIntent = stackBuilder.getPendingIntent( REQUEST_CODE, PendingIntent.FLAG_UPDATE_CURRENT ); ... m