图片设置手机壁纸

安卓实现瀑布流里面的img设置为手机屏幕壁纸
https://www.cnblogs.com/android-deli/p/10116723.html
// WallpaperManager instance = WallpaperManager.getInstance(ShowActivity.this);
// int width = getWindowManager().getDefaultDisplay().getWidth();
// int height = getWindowManager().getDefaultDisplay().getHeight();
// instance.suggestDesiredDimensions(width,height);
// try {
// instance.setBitmap(bitmap);
// } catch (IOException e) {
// e.printStackTrace();
// }

实现MP4视频设置为手机屏幕壁纸
https://www.jianshu.com/p/cc584ffb620e?utm_campaign

你可能感兴趣的:(图片设置手机壁纸)