Comment on AI Wallpaper Changer for Android
rikudou@lemmings.world 7 months agoYou 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.
Comment on AI Wallpaper Changer for Android
rikudou@lemmings.world 7 months agoYou 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.
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 anyActivity
, I mean fromWallpaperService
. Anyways, ifWallpaperService
never runs you shouldn’t have workmanager set and consume horde resources anyways.rikudou@lemmings.world 7 months ago
I think I’ve explained quite well already, but again, many vendors, like Samsung, kill any background jobs before they have a chance to run. No matter what technology you use, it will get killed. The only thing that doesn’t get killed is an exact alarm that’s allowed to wake your phone from sleep. Everything else will get killed on Samsung. Including periodic alarms and including work manager, periodic or not.
I have no idea what the rest of your message is even talking about, I don’t have any WallpaperService, I don’t do any of what you mention, so I don’t quite understand why are you even talking about it.
In conclusion, further discussion on this topic is unnecessary because you seem to be rambling on and on about stuff that’s not at all related to why the battery optimization exception is needed. It’s not because of stock Android, but because of other vendor’s flavors of Android.
trolololol@lemmy.world 7 months ago
Ah I assumed you implemented some sort of live wallpaper but apparently is not the case. So your solution has no overlap with mine.
Also I see that help seems to be not welcome. Feel free to reach if you change your mind.