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.
如果我也在使用 startForeground(),我很难确定是否需要获取 WakeLock。
startForeground()不会自动获取WakeLock. 您是否需要 aWakeLock取决于您的服务在做什么。
startForeground()
WakeLock