문제

In jellybeam mr2 daydream replaced display sleep. An application was able to know when the sleep starts or ends by registering broadcast receiver for action ACTION_SCREEN_ON, ACTION_SCREEN_OFF. Is there any way to do the same against daydream?

Just to be clear, I'm not trying to add a new daydream service, but just want to be informed of (any) daydream-related events.

도움이 되었습니까?

해결책

register for

Intent.ACTION_DREAMING_STARTED and Intent.ACTION_DREAMING_STOPPED
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top