I want to automatically set the live wallpaper in Android by code, without any user interface for wallpaper selection.
Simple wallpaper setting automatically setting is possible by code:
final WallpaperManager wallpaperManager = WallpaperManager.getInstance(this);
final Drawable wallpaperDrawable = wallpaperManager.getDrawable();
final ImageView imageView = (ImageView) findViewById(R.id.imageview);
imageView.setDrawingCacheEnabled(true);
imageView.setImageDrawable(wallpaperDrawable);
Now I have to set Live Wallpaper automatically using a service, such that Live Wallpaper should be set automatically everyday on screen.
How can I do this?
Android OS does not allow you to programatically set live wallpaper. You can do that only for static wallpaper. The closest you can get is use this method: Setting live wallpaper programmatically.