Hi all i want to know how to set background of layout,image view or ... to live wallpaper from java is that possible?how?? pick a live wallpaper and set that for background??we can do it with normal wallpaper with but i don't know about live wallpaper! i tried Google search for long time. i really need to know it.
this is for normal Drawable:
File backgroundf = new File(Uri.parse("sdcar/Wallpaper_BG.jpg").getPath());
if (backgroundf != null) {
Bitmap BarbackgroundBitmap = BitmapFactory.decodeFile(backgroundf.getAbsolutePath());
BackgroundDrawable = new BitmapDrawable(mContext.getResources(), backgroundBitmap);
}
mBackground.setImageDrawable(BarBackgroundDrawable);
Thanks.