Comment on AI Wallpaper Changer for Android
rikudou@lemmings.world 7 months agoThe wallpapers are changed automatically in the background. And most phone vendors will kill the background job, even if it doesn’t consume almost any resources. If you don’t disable battery optimizations, don’t be surprised that the app doesn’t work.
trolololol@lemmy.world 7 months ago
I wonder how you’re using workmanager , and expect you to not be using services directly. These are the ones that could have an impact.
Wallpapers have their own instance of WallpaperEngine which is kept in use as long as the user is seeing the wallpaper. That’s my experience with my own wallpaper.
rikudou@lemmings.world 7 months ago
I schedule the job using an inexact alarm which then triggers the work manager job. Anyway, Samsung kills pretty much anything in the background unless you go out of your way to prevent it. I have no recent experience with other vendors. It would kill yours, too, no matter what code you use to write it.
trolololol@lemmy.world 7 months ago
You’ve got like 10 seconds to do what you need, should be enough to download your image?
rikudou@lemmings.world 7 months ago
You don’t seem to understand that the job will be killed before it’s even triggered. Like the scheduled job will not run at all.