从最近的应用程序列表中删除后,Android 应用程序进程未终止 [英] Android app process not killed after removed from recent app list

查看:39
本文介绍了从最近的应用程序列表中删除后,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 应用程序进程未终止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆