Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
用户如何在应用程序之外销毁服务。我制作了一个用户永远无法“退出”的应用程序,因为主活动禁用了“后退”按钮,但现在我的服务通知无法删除(最终会有条件显示它,但不是现在) !我知道当应用程序像这样在后台时,android会管理内存,但是如果我真的想关闭该服务,该怎么做?
您可以使用 Bindservice。Service 作为 Bindservice 停止。