Navjot Bedi Navjot Bedi - 2 months ago 29x
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


But not able to set LockScreen Wallpaper


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