开发者

Navigation between screens (Activities) (Android 2.2)

开发者 https://www.devze.com 2023-04-01 11:26 出处:网络
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 activ

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开发者_StackOverflow社区 mode "singleTask" however according to Android documentation this is not recommended! Does anyone had similar issues? Thanks!


Add FLAG_ACTIVITY_REORDER_TO_FRONT in the Intent you use with startActivity().

0

精彩评论

暂无评论...
验证码 换一张
取 消