Android 应用程序无法关闭
我已经为Android编写了一个应用程序,但它不会关闭,并且还会随系统自动启动。我不知道为什么,但即使通过任务管理器也无法关闭它。所以我想知道为什么它不关闭。
I've written an application for Android, but it doesn't close and it also starts automatically with the system. I don't know why, but it can't be closed, even through the Task Manager. So I would like to know why it doesn't close.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相信您已经了解过 Android 应用程序实际上不应该关闭。除此之外,我还需要我的应用程序在不再可见时终止。首先我尝试了
,效果很好,但这不是正确的方法,最好的方法是打电话
给我很抱歉,如果您已经尝试过/知道这些解决方案;从你的问题中并不清楚。
I'm sure you have read how Android apps aren't really supposed to close. That aside, I also needed my app to terminate when no longer visible. First I tried
That worked just fine but it isn't the proper way to do it, the best way is to call
I'm sorry if you had already tried/were aware of those solutions; it wasn't clear from your question.