从最近的应用程序列表中删除后,Android 应用程序进程未终止

编程入门 行业动态 更新时间:2024-10-14 06:20:08
本文介绍了从最近的应用程序列表中删除后,Android 应用程序进程未终止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我发现从最近使用的应用程序列表中滑开后,我的应用程序的进程没有被终止,但只发生在带有 Android OS 6.0.1 的 LG nexus 5 上(来自我测试过的设备),该进程在其他设备上被彻底杀死设备.

I found my app's process is not killed after I swipe away from recently used app list, but only happen on LG nexus 5 with Android OS 6.0.1 (from devices I've tested), the process is killed cleanly on other devices.

我已经集成了一个第三方 sdk,如果我初始化它,它将启动其他进程和服务,我确定它是相关的,因为如果我不初始化它,问题就会消失,但我不清楚如何以及第三方在创建这些服务时使用什么标志.

I've integrated a third party sdk which would start other processes and services if I init it and I'm sure it's related because if I don't init it, the problem disappears, but I'm not clear how and what flags the third party uses when creating those services.

所以我的问题是,是否有任何已知的错误或我遗漏的系统设置导致它在不同的设备或操作系统中表现不同?

So my question is, is there any known bugs or system-wise settings I'm missing that cause this behaves differently in different devices or OS?

推荐答案

如果您将应用从最近使用的应用"列表中滑动,应用不会完全停止.我认为如果你这样做,服务就会保持活力.如果您使用的是第三方,那么它会为其任务启动一项服务,那么必须如此.

Apps are not stopped completely if you swipe the app off the Recent App list. I think services are kept alive if you do this. If you're using a third party then it starts a service for its tasks, then that must be it.

更多推荐

从最近的应用程序列表中删除后,Android 应用程序进程未终止

本文发布于:2023-11-27 10:46:38,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1637753.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   进程   列表中   Android

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!