android - Back button clicked with empty stack but still shown in Recent apps
问题描述
I am trying to figure out how recent apps interacts with android back button event.
When my app is not opened in the background, if I launched an deeplink and it goes to my simply destination activity. When I clicked on back button, I can see that the activity popped from stack and my app closed due to the activity was the only one in task stack.
my questions,
Even with back button clicked, and the app closed. I still see my app in "recent apps", my impression is that such back button should killed my app since no activity in stack at all. Why still in recent apps?
If I click on the app in recent apps, I observed the same intent was triggered ago (deeplink intent), and why is that? (android's mechanism to cache last intent maybe?)
解决方案
推荐阅读
- aop - Resiliency4j CircuitBreaker 尝试在 AOP 中调用断路器逻辑,以实现在配置中禁用时不调用断路器
- c++ - 当我导入时强制 Python 加载库/.so 文件
- java - 无法在android ionic中启动前台服务
- c++ - GStreamer avenc_mjpeg 编码器不工作
- node.js - 如何在一个代码库中为多个服务器制作容器以使用 docker 部署 golang 应用程序?
- python - 像在 python 中一样在 C++ 中读取二进制文件
- r - R:如何摆脱从第一点到最后一点的线
- excel - 合并相同的单元格
- flutter - 如何用颤振裁剪网址图像?
- prolog - 用 CLP 求解 Euler 4