반응형
[android] Oreo 에서는 Wakelock 이 소용 없다?! |
https://developer.android.com/about/versions/oreo/android-8.0-changes
-
As one of the changes that Android 8.0 (API level 26) introduces to improve battery life, when your app enters the cached state, with no active components, the system releases any wakelocks that the app holds.
App 이 cache 상태에 돌입하고, Active component 가 없으면 system 이 자동으로 wakelock 을 해제한다고 되어 있다.
이 말을 다시 해석하면 App 이 background 에 들어가면서 foreground 로 실행되는 녀석이 없다면(예를 들면 foreground service 나 high priority push 등으로 인해 동작하는 로직 등) wake lock 은 무용지물이라는 이야기이다.
반응형
'프로그래밍 놀이터 > 안드로이드, Java' 카테고리의 다른 글
[android] Dagger2 Tutorial (0) | 2018.12.04 |
---|---|
[android] Dagger2 for Android Beginners (0) | 2018.12.03 |
[android] WakefulBroadcastReceiver 를 알아보자! (2) | 2018.12.01 |
[android] NoClassDefFoundError for SafeBrowsingResponse (0) | 2018.11.30 |
[android] Cookie 는 android 단말에서 world wide 한가? (0) | 2018.11.29 |
댓글