<pre><pre lang="kotlin"> <pre>val result: Bitmap = fl_iv.drawToBitmap() val wallpaperManager = WallpaperManager.getInstance(this) try { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { wallpaperManager.setBitmap(result, null, true, WallpaperManager.FLAG_LOCK) } } catch (ex: IOException) { ex.printStackTrace() }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)