Reputation: 516
I have application with several screens. For each screen I have created separate Activity. Question: how to navigate from one screen to another screen so that new activity is not created if such activity exists on "back stack"? My idea was to use launch mode "singleTask" however according to Android documentation this is not recommended! Does anyone had similar issues? Thanks!
Upvotes: 1
Views: 748
Reputation: 1007554
Add FLAG_ACTIVITY_REORDER_TO_FRONT
in the Intent
you use with startActivity()
.
Upvotes: 1