Intent - if activity is running, bring it to front, else start a new one (from notification)

前端 未结 8 1253
星月不相逢
星月不相逢 2020-11-27 13:57

My app has notifications, which - obviously - without any flags, start a new activity every time so I get multiple same activities running on top of each other, which is jus

8条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-27 14:30

    You can use this:

    
    

    which will work similar to "singleInstance" but it won't have that weird animation.

提交回复
热议问题