07-12-2022 11:03 - edited 07-12-2022 15:08
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

07-12-2022 11:03 - edited 07-12-2022 15:08
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I'm currently working on an app and try to make some power usage optimizations and don't execute some code if device is in Sleep or Do Not Disturb modes.
So my question is:
there is an variable in SDK to determine Sleep Mode and DND states (turned On or Off) on the device? Either in Quick Settings and by Sleep Schedule in Settings.

07-12-2022 21:21 - edited 07-14-2022 00:04
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


07-12-2022 21:21 - edited 07-14-2022 00:04
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi @McFIT_Design - I found this settings Api issue which may be the answer.
Author | ch, passion for improvement.

07-13-2022 03:24 - edited 07-13-2022 03:26
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

07-13-2022 03:24 - edited 07-13-2022 03:26
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Settings API have a completely different purpose.
But I've read your linked post and I hope that something has been changed from 2021 in this matter.

