Austin B
Austin B

Reputation: 1600

Does using startForeground(int, Notification) in a Service acquire a WakeLock?

I'm having a hard time figuring out if I need to acquire a WakeLock if I'm also using startForeground().

Upvotes: 2

Views: 726

Answers (1)

CommonsWare
CommonsWare

Reputation: 1007359

startForeground() does not automatically acquire a WakeLock. Whether you need a WakeLock depends upon what your service is doing.

Upvotes: 4

Related Questions