My application has two activities A and B. A is the root activity and set with singleTop launchMode. B is started from A, i.e. the task stack is (A->B) I add a status notification to launch the application as long press Home button. The notification intent point to activity A.
When the task stack is (A) only, the intent invokes onNewIntent() from existing A, as expected. When the task stack is (A->B), the intent create new activity A. But what I wants is resume task (A->B) as switch recent apps by long press Home button.
Is the problem caused by incorrect launch mode used? or any flags need to be added to the notification intent?
Thanks.