Get current wallpaper

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

I was wondering if there is a way to get the current wallpaper on an Android device and save it in a variable in your application code.

thanks

+8
android methods wallpaper
source share
2 answers
final WallpaperManager wallpaperManager = WallpaperManager.getInstance(this); final Drawable wallpaperDrawable = wallpaperManager.getDrawable(); 
+27
source share

This is a good way to do this:

 WallpaperManager wallpaperManager = WallpaperManager.getInstance(this); Drawable wallpaperDrawable = wallpaperManager.getDrawable(); 
+4
source share

All Articles