3

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

duggu
  • 37,851
  • 12
  • 116
  • 113
Navjot
  • 1,202
  • 1
  • 11
  • 24

3 Answers3

5

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

mikepenz
  • 12,708
  • 14
  • 77
  • 117
3

Edit: See Mikepenz's answer for API 24+.

According to CommonsWare (who generally knows what he's talking about), there's no such thing as a lockscreen wallpaper, and there's no way of changing the lock screen background through the API.

See https://stackoverflow.com/a/2654241/153225.

Community
  • 1
  • 1
Martin
  • 3,703
  • 2
  • 21
  • 43
-14
  1. Go to the Main menu and search for the icon Wallpaper
  2. Tap on that icon. You will be provided with three options:
    • Gallery
    • Live Wallpaper
    • Wallpaper
  3. Tap on the source from which you would like to select your new wallpaper. Choosing Gallery will bring you to your saved images and photographs.
  4. Tap the Set Wallpaper button once you decide on your new wallpaper.
SalekS
  • 11
  • 1
  • Also this does not specifically set the lockscreen background only the phones background. – Nick Aug 20 '13 at 13:29