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.
我需要检测用户是否强制停止我的服务(来自应用程序管理器)。在 onDestroy() 中,当服务被用户停止(“强制停止”)或系统(内存不足)/重启时,我需要实现不同的功能。