如果两个活动a b 放你在b的时候返回home,然后按notification在返回时会返回a
我现在想返回b 那么就需要在Intent中添加
Intent notificationIntent = new Intent(this, Main.class);
notificationIntent.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
//关键两句
notificationIntent.setAction("android.intent.action.MAIN");
notificationIntent.addCategory("android.intent.category.LAUNCHER");