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

前端 未结 4 1188
佛祖请我去吃肉
佛祖请我去吃肉 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:11

    Add FLAG_ACTIVITY_REORDER_TO_FRONT to your Intent you use with startActivity().

提交回复
热议问题