Is Android's FLAG_NEW_TASK named rightly???
According to an Android's document,
FLAG_ACTIVITY_NEW_WHEN_NOT_AVAILABLE_OTHERWISE_USE_EXISTING_ONE in truth. This name cast me a very long journey all the way around to return back to FLAG_ACTIVITY_NEW and FLAG_ACTIVITY_CLEAR_TOP combination....
So, it seems FLAG_ACTIVITY_NEW isFLAG_ACTIVITY_NEW_TASK
Start the activity in a new task. If a task is already running for the activity you are now starting, that task is brought to the foreground with its last state restored and the activity receives the new intent in onNewIntent().
FLAG_ACTIVITY_NEW_WHEN_NOT_AVAILABLE_OTHERWISE_USE_EXISTING_ONE in truth. This name cast me a very long journey all the way around to return back to FLAG_ACTIVITY_NEW and FLAG_ACTIVITY_CLEAR_TOP combination....
Comments