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.
我看到这个关于如何从活动启动服务的教程我的问题是:如果使用我的应用程序的用户关闭我的应用程序,服务将继续运行或应用程序的关闭停止服务?我想实现我的通知服务。
有关服务将运行多长时间的详细说明,请参阅官方文档中的服务生命周期。
在大多数情况下,除非关闭所有已启动的服务,否则应用程序无法真正关闭。