1

My smartphone (Samsung A21s) doesn't supoort the AOD of Samsung. So i tested several apps from the Play store. But I want an app,so i decided to code my own app, which allows me to choose my own background. I want to use the pictures from the gallery. I also want a music control for the AOD. I have a accurate idea of what I want, but I don't know how to code it. Does anybody know, how a AOD is coded? I use Kotlin and I'm working with Android Studio.

Thank you for your help

3
  • If you just need to keep the screen on while you're using your app, you can use a wakelock: developer.android.com/training/scheduling/wakelock#screen Commented Jul 24, 2022 at 18:30
  • its not that kind of a AOD. Just download AOD on the playstore, and then you'll know what I mean Commented Jul 25, 2022 at 11:41
  • That is basically how they work though, it's an app that prevents the screen from turning off when idle, so it's constantly displayed even if you're not interacting with it. Even if you want it to turn off sometimes but turn on every so often, or when you touch the device, you'll still need a wakelock to turn the screen on again. If you want to make an app that behaves like that I'd start there. Trying to replicate an actual Always On Display (a feature baked into the OS/first-party software on supported devices) without the same access and guaranteed hardware support will be hacky though Commented Jul 25, 2022 at 17:30

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.