Is Android's FLAG_NEW_TASK named rightly???

According to an Android's document,

FLAG_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().
So, it seems FLAG_ACTIVITY_NEW is
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

Popular posts from this blog

Calling OpenCV functions via Cython from Python 3.X.

Showing CPU/Memory usage on tmux status bar(tmuxのステータスバーにCPUとMemoryの使用状況を表示する)

Subclassing and Signal connect on a same widget crashes PySide application on exit.