Alternative to Intent.FLAG_ACTIVITY_CLEAR_TASK

后端 未结 6 1081
傲寒
傲寒 2021-02-06 22:59

I have two apps App-B launches App-A. If the user starts App B from inside App A I call finish on App-A so I have no problem.

If the user goes straight to App B from th

6条回答
  •  醉话见心
    2021-02-06 23:24

    this will work correctly

    i.addFlag(Intent.FLAG_ACTIVITY_NO_HISTORY | 
                   Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);
    

提交回复
热议问题