Comment on AI Wallpaper Changer for Android

<- View Parent
trolololol@lemmy.world ⁨7⁩ ⁨months⁩ ago

I think the msg sent yesterday didn’t get through;

periodic alarms is the old way; periodic work manager is the new way.

trigger your workmanager schedule by either alarm or by opening the app. but use the alarm only once if you must.

my wallpaper used to handle reboots by listening to a boot event, which would trigger workmanager. Unfortunately I haven’t come to find an alternative for that for general apps. However, if your wallpaper is set to your app I bet there’s a way to check if you have any workmanager scheduled, and if it’s not, do it from there. I don’t mean from Application or any Activity, I mean from WallpaperService. Anyways, if WallpaperService never runs you shouldn’t have workmanager set and consume horde resources anyways.

source
Sort:hotnewtop