When starting an activity from a notification, will it start as new task or old task?
Neither. it will be started as a system in Notification Manager task.
It will be started in the old task, which has given pending intent to Notification Manager
it will be started as a new task always.
When we start a new activity from Notification, it is fresh starting point, so it has to be started as a new task. that's why when we are starting an activity from notification, we have to use FLAG_NEW_TASK in the intent.
Back To Top