Miguel is a professional software developer that has helped (volunteer and consulting) for dozens of companies through his firm Eridem AB.
Follow my @softwareInANutshell comics on Instagram!
We can get the background that is currently used by the device and convert it to a drawable object. We may use it to set up the background of our application as the wallpaper or set up the source of a ImageView.
// YourActivity.java WallpaperManager wallpaperManager = WallpaperManager.getInstance(this); Drawable wallpaperDrawable = wallpaperManager.getDrawable(); ImageView iv = new ImageView(this); iv.setImageDrawable(wallpaperDrawable);