我有问题从本地通知中获取新意图并关闭旧意图
通常我会用独特的"键"来启动意图。
Intent queueIntent = new Intent(this, QueueListViewActivity.class);
queueIntent.putExtra("key","unique");
startActivity(queueIntent);
当我午餐通知意图时,它不会关闭旧的
Intent notificationIntent = new Intent(this, QueueListViewActivity.class);
notificationIntent.putExtra("key", "myqueue");
PendingIntent contentIntent = PendingIntent.getActivity(this, 0, notificationIntent, 0);
如果存在,如何使通知关闭旧意图?