Resume the Top Activity instead of starting the Launcher Activity

前端 未结 6 1222
既然无缘
既然无缘 2020-12-13 09:23

I have two activities in My application, one being launcher and the other is launched as a explicit call from the first.

Here My problem is when i go back to home sc

6条回答
  •  感情败类
    2020-12-13 09:24

    Without seeing your code, I think you want something like this answer:

    Android finish Activity and start another one

    You need to set intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); and you'll also need to finish() your launcher activity as well.

提交回复
热议问题