简体   繁体   中英

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 ?

确保在启动活动2时未使用FLAG_NEW_TASK。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM