I Get The Following Error When Trying To Set A Wallpaper
public HeavyLifter(Context context, Handler callback) { this.context = context; this.callback = callback; this.manager = (WallpaperManager) context.getSyste
You should use the getInstance()
method of WallpaperManager
to get ahold of an instance.
Change the following:
this.manager = (WallpaperManager) context.getSystemService(Context.WALLPAPER_SERVICE);
To this:
this.manager = WallpaperManager.getInstance(context);
Post a Comment for "I Get The Following Error When Trying To Set A Wallpaper"