Is it possible to detect if Daydream is on or off? If so, how?
Edit: To clarify, I looking to read the system setting for DayDream (much like you can for airplane mode and other settings). You can infer that from Intent.ACTION_DREAMING_STARTED and Intent.ACTION_DREAMING_STOPPED, but it's not the same thing.
This answer says you can use:
Intent.ACTION_DREAMING_STARTED and Intent.ACTION_DREAMING_STOPPED
for broadcast events.
Here is documentation
I've written a little utility class to get some Daydream settings:
You can find it here: https://github.com/PieterAelse/blendle/blob/master/mobile/src/main/java/com/piotapps/blendle/utils/DayDreamUtils.java
Hope this helps you out.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With