I have a hobby of taking a lot of pictures, and some of the pictures do turn out nice (at least to me 😊). So, I’ve also created a web portal to showcase those pictures 🖼️.
As an Android engineer, I was aware of Muzei Live Wallpaper app created by Roman Nurik back in 2014. Recently I’ve seen some updates from Ian Lake who took over the project while ago, so I decided to make a plugin for Muzei to use my pictures as wallpaper on my Android phone.
ps. If you simply want to use the plugin, see README for instruction 🤗
The objective of this post is to showcase how easy it was for me to work on this ⏰ 1-day hackathon project to create the plugin for Muzei by following guidelines and examples provided in the Muzei GitHub repository.
Essentially, I had to do 2 major tasks to create the Android plugin
- Download a list of image URLs+metadata and convert them into
- Declare a content provider on
AndroidManifest.xmlto expose the images for Muzei Live Wallpaper app.
Download Image Metadata
You can use any library of your choice to do that, I’ve followed the unsplash example and used Retrofit+WorkManager to download metadata and convert the images into
Artwork objects. See source code snapshot from GitHub.
Expose Content Provider
I have released the plugin app on Google Play as a public release. If you are interested, then get it on Google Play. If you do like the wallpapers, feel free to drop a line here.✌️
💻 Source code of the Android project is available at GitHub repo below: