开发者

Bring an Activity to the front using Android TaskManager

I am running into an issue with bring up an Activity to the front.

  1. When the app is launched the user sets some time (Activity 1)
  2. Now the app shows a count down time with time decreasing (Activity开发者_运维百科 2)
  3. Now I press the home button.
  4. Choose Task Manager, select my app shown in the list and select "Switch To" to bring the app to the front, instead of Activity 2 it ends up on the Activity Screen 1.

What can I do so the task manager switches to the most recent Activity?


Make sure you are not using FLAG_NEW_TASK when launching Activity 2.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜