Get current wallpaper

moesef picture moesef · Mar 30, 2012 · Viewed 17.2k times · Source

I'm pretty new to Android programming so bear with me.

I was wondering if there was a method of retrieving the current wallpaper on an android device and saving it to a variable in your app's code.

Thanks

Answer

Anand M Joseph picture Anand M Joseph · Mar 30, 2012
final WallpaperManager wallpaperManager = WallpaperManager.getInstance(this);
final Drawable wallpaperDrawable = wallpaperManager.getDrawable();