Remote Widget

by Ahmed Samir

About Schedule image downloading/displaying in Glance widget with WorkManager API

View on GitHub

Documentation

RemoteWidget

Schedule image downloading/displaying in Glance widget with WorkManager API.

Every 15 minutes a new image is downloaded from the api and placed in the app widget. I wrote an article about it in Medium.

Make sure you first grab an API key from UnSplash API and then place it in your local.properties file like so

CLIENT_ID = "your_api_key"

Choosing category and start scheduling

After 15 mins

Dispatch Newsletter
Be the first to discover new Compose libraries
Curated Insights
Digest in 5 minutes or less
Android Analysis
Entertaining takes on happenings
Insider Tips
From top Android developers
Hidden Gems
You won't find elsewhere
"
"Dispatch is a must read for Android devs today and my go-to for keeping up with all things Jetpack Compose. I eagerly await each issue, not just for the Compose gems honestly but for Vinay's unique insights, stories, and finds. The Dev Delight and Featured Dev sections are particular favorites of mine! He really should do a podcast."
— Kaushik Gopal
Principal Engineer @ Instacart | Host of the Fragmented Podcast | GDE for Android
Join thousands of Android devs who look forward to Dispatch every week