Home > Net >  Image View that changes daily
Image View that changes daily

Time:11-07

How would I do this? I have figured out how to change the image on a button click, but I would like the image to change automatically every midnight. A sort of daily image thing for my app. I'm not too sure how time works in kotlin and am entirely lost. Any help would be appreciated!

CodePudding user response:

You can make use of the WorkManager library for this. You can schedule a deferrable work. Check out the WorkManager documentation https://developer.android.com/topic/libraries/architecture/workmanager

  • Related