在使用 FLAG_ACTIVITY_REORDER_TO_FRONT 參數傳遞參數時,即使在參數變化時,目標activity獲取到參數仍然不變化
@Override
protected void onNewIntent(Intent intent) {
super.onNewIntent(intent);
setIntent(intent);
}
目標activity重載以上方法,能獲取到變化的參數
在使用 FLAG_ACTIVITY_REORDER_TO_FRONT 參數傳遞參數時,即使在參數變化時,目標activity獲取到參數仍然不變化
@Override
protected void onNewIntent(Intent intent) {
super.onNewIntent(intent);
setIntent(intent);
}