Skip to content Skip to sidebar Skip to footer

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

Solution 1:

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"