How to open already opened activity instead of creating new one?

前端 未结 4 1191
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-28 17:49

I have two activities with \"navigation menu\" which has items for launching Activity1 and Activity2. For example we starts Activity2 from Activity1 and then we want open Ac

4条回答
  •  遥遥无期
    2020-12-28 18:35

    Set the flag of the activity to singleTask and override the onNewIntent(Intent intent) to catch the new intent.

提交回复
热议问题