Home key press behaviour

前端 未结 8 1648
北恋
北恋 2020-12-03 08:36

While developing a sample android application i have constructed two activities 1)Activity 1 2)Activity 2

Now Activity 2 is the foreground activity whereas Activity

8条回答
  •  自闭症患者
    2020-12-03 09:12

    I had a similar problem. It wasn't launching the last open activity but the Launcher Activity. But I had also put

    android:launchMode="singleTask"
    

    in my Launcher Activity in the manifest. Removing that fixed my issue. If you have also put the same thing then try removing it, it might fix for you too.

提交回复
热议问题