Comment on AI Wallpaper Changer for Android
trolololol@lemmy.world 7 months ago
I don’t see the need for battery saver and don’t kill my app for wallpapers.
You only need to start the job in the server and then download, so the phone CPU usage must be minimal.
rikudou@lemmings.world 7 months ago
The 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?