Android 屏幕壁纸截取

    // 获取壁纸管理器
    WallpaperManager wallpaperManager = WallpaperManager.getInstance(this.getContext());
    // 获取当前壁纸
    Drawable wallpaperDrawable = wallpaperManager.getDrawable();
    // 将Drawable,转成Bitmap
    Bitmap bmp = ((BitmapDrawable) wallpaperDrawable).getBitmap();

你可能感兴趣的:(Android 屏幕壁纸截取)