I do set wallpaper function but it's not manually like this set wallpaper
Code:
private void setWallpaper()
{
Bitmap bitmap = ((BitmapDrawable)imageView.getDrawable()).getBitmap();
WallpaperManager manager = WallpaperManager.getInstance(getApplicationContext());
try {
manager.setBitmap(bitmap);
Toast.makeText(ViewWallpaperActivity.this,"Done!",LENGTH_LONG).show();
} catch (IOException e) {
Toast.makeText(ViewWallpaperActivity.this,"Error!",LENGTH_LONG).show();
}
}