안드로이드 개발 질문/답변
(글 수 45,052)
Intent intent = new Intent(ReorderFour.this, ReorderTwo.class);
intent.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
intent.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
Intent.FLAG_ACTIVITY_REORDER_TO_FRONT -> 이 값이 뜻하는 부분이 정확히 아시는 계시나요?
아래는 영어해석 부분인데 정확히 이해하는 데 쉽지가 않네요.
A -> B -> C -> D 액티비티 순으로 호출되고, 여기사 다시 B 호출하는 경우에 해당하는 부분인거 같은데
내부적으로 어떤 상황이 발생하는 지 알 수가 없네요.
public static final int FLAG_ACTIVITY_REORDER_TO_FRONT
아래는 영어해석 부분인데 정확히 이해하는 데 쉽지가 않네요.
A -> B -> C -> D 액티비티 순으로 호출되고, 여기사 다시 B 호출하는 경우에 해당하는 부분인거 같은데
내부적으로 어떤 상황이 발생하는 지 알 수가 없네요.
public static final int FLAG_ACTIVITY_REORDER_TO_FRONT
Since: API Level 3
If set in an Intent passed to Context.startActivity(), this flag will cause the launched activity to be brought to the front of its task's history stack if it is already running.
For example, consider a task consisting of four activities: A, B, C, D. If D calls startActivity() with an Intent that resolves to the component of activity B, then B will be brought to the front of the history stack, with this resulting order: A, C, D, B. This flag will be ignored if FLAG_ACTIVITY_CLEAR_TOP is also specified.