How to change the lockscreen wallpaper in android?
Asked Answered
B

3

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

Belton answered 6/2, 2013 at 12:12 Comment(0)
C
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

Corm answered 2/8, 2016 at 18:13 Comment(1)
So it is not possible to use live wallpapers, right? I read the documentation and I only found options to bitmap.Flyman
E
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://mcmap.net/q/420662/-how-to-set-android-lock-screen-image.

Emboly answered 16/4, 2013 at 4:15 Comment(0)
S
-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.
Slough answered 6/2, 2013 at 12:24 Comment(1)
Also this does not specifically set the lockscreen background only the phones background.Bindle

© 2022 - 2024 — McMap. All rights reserved.