I want to set image from the internet as wallpaper, but WallpaperManager works only with Id of image, which is Int type.
My solution is to download image from internet Picaso
Picasso.from(mContext).load(url).into(imageView);
and after to find ID of that image and put it in WallpaperManager
WallpaperManager myWallpaperManager
= WallpaperManager.getInstance(getContext());
try {
myWallpaperManager.setResource(loadedImage)
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
Question: How to find ID of that image?