Skip to content Skip to sidebar Skip to footer

How To Set Wallpaper Of Image Getting From Url In Android

From below code I am able to get the image on imageview from server using URL of that image. Now I want to set as wallpaper of that image. Please provide solution.... so that I wil

Solution 1:

WallpaperManager wpm = WallpaperManager.getInstance(context);
InputStream ins = new URL("absolute/path/of/image").openStream();
wpm.setStream(ins);

you should add permission for this

<uses-permission android:name="android.permission.SET_WALLPAPER"></uses-permission>

Post a Comment for "How To Set Wallpaper Of Image Getting From Url In Android"