Navjot Bedi Navjot Bedi - 4 months ago 62
Android Question

How to change the lockscreen wallpaper in android?

I want to change the lockscreen wallpaper of android. I was able to change home screen wallpaper through

WallpaperManager.setResource


But not able to set LockScreen Wallpaper

Answer

This is now possible with the updated Android API in API Level 24.

You have to provide the target WallpaperManager.FLAG_LOCK flag via the setResource method.

int setResource (int resid, int which)

See the updated documentation for the WallpaperManager

Comments