I have this weird event that when I minimize an activity using home button, this activity gets finished. So when I try to relaunch the app, it gets back to the previous activity.
I don't put anything in the onPause()
except some boolean
value changes. And I also don't put any finish()
on that activity.
Is there anything that could finish activity immediately when it gets minimized without calling finish()?
thank you.
在开发人员选项中,您可能已启用名为“不保留活动”的选项,或者活动清单元素的noHistory属性为true
也许在开发人员选项中启用了“不保留活动”选项。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.