Questions tagged [android-wallpaper]

Questions about or related to the wallpaper features of Android.

In Android devices, wallpaper is an image used as a background for the graphical user interface. In most devices, the wallpaper usually refers to the background for the 'home' or 'idle' screen. Though most devices come with a default picture, users can usually change it to files of their choosing.

166 questions
17
votes
3 answers
8
votes
3 answers

How to get android lock screen wallpaper?

I use the code below to retrieve the android lock screen wallpaper on an android 8.1 phone: WallpaperManager manager = WallpaperManager.getInstance(getActivity()); ParcelFileDescriptor pfd = manager.getWallpaperFile(WallpaperManager.FLAG_LOCK); if…
Run
  • 2,148
  • 2
  • 12
  • 29
7
votes
0 answers

Changing lock screen background programmatically

I am trying to change the lock screen background image from my app but am unable to figure out how to do it. I succeeded in changing the home screen wallpaper using WallPaperManager, but could not find a source to do the same for the lock screen. I…
Siju
  • 2,585
  • 4
  • 29
  • 53
6
votes
2 answers

How to getCropAndSetWallpaperIntent(Uri imageUri) to work?

So, there are two questions that are the same as this( How to use getCropAndSetWallpaperIntent method in WallpaperManager? AND How to use getCropAndSetWallpaperIntent? ), but there are no answers to both of them. In hope of an answer I'm asking this…
6
votes
4 answers

What does it mean for a method to be deprecated, and how can I resolve resulting errors?

Why do I get a deprecation error on the line containing setWallpaper(bmp), and how can I resolve it? Error: The method setWallpaper(Bitmap) from the type Context is deprecated switch(v.getId()){ case R.id.bSetWallpaper: try { …
TAM
  • 347
  • 4
  • 9
  • 20
5
votes
0 answers

Strange behaviour in Android 12+ with WallpaperManager

Is this a bug with WallpaperManager in the latest versions of Android? When setting the wallpaper, it will automatically destroy and reload the current activity. This behaviour only seems to affect Android 12 and onwards. It's quite easy to…
Auc
  • 158
  • 1
  • 2
  • 10
5
votes
0 answers

Live wallpaper is not accessible from other Live Wallpaper apps

I have developed a live wallpaper app and it is accessible only from Google's Live wallpaper app, but there are phones like Xiaomi, Oppo which has their own wallpaper app and My app doesn't show in their wallpaper section. Can anyone help me fix…
4
votes
1 answer

One launcher icon for multiple Live Wallpapers

I'm currently working on the rollout process of my upcoming live wallpapers. I currently have one live wallpaper in the Google Play store that comes with no launcher whatsoever. The settings can only be adjusted in the native live wallpaper…
Al0x
  • 917
  • 2
  • 13
  • 30
4
votes
2 answers

open image in another app

this is how my app look: this is what i want to perform on button click: open image in another app this is what i tried: package com.example.wallpaper_test; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import…
user3739970
  • 591
  • 2
  • 13
  • 28
3
votes
3 answers

How to set a wallpaper through image link in android programmatically?

I am trying to set as wallpaper through image link. My Question: How to show dialog box "loading Image from server" and now "Set wallpaper". After this Pop up appear to ask user where they want to set Current Situation: when user click the button…
3
votes
1 answer

Wallpaper does not set on lock screen on MIUI 10.2 redmi devices

I am trying to set wallpaper on lock screen in miui 10.2 Redmi devices. I can set home screen wallpaper using this code : wallpaperManager.setBitmap(crackedBitmap); But when i am trying to set lock screen wallpaper using this code it's not…
Sagar gujarati
  • 152
  • 1
  • 15
3
votes
1 answer

Avoid Wallpaper being Stretch on Some Devices

Hello There I am totally new to Android Dev. and learning it to my own. I am learning to setup a home screen wallpaper, and I have been facing a problem that my wallpaper being stretch on some devices (not all). The problem is strange, when I set…
Java Nerd
  • 958
  • 3
  • 19
  • 51
3
votes
2 answers

How do I restart this wallpaper engine after settings have been updated?

I'm creating a live wallpaper and I'm using this tutorial as a starting point: http://code.tutsplus.com/tutorials/create-a-live-wallpaper-on-android-using-an-animated-gif--cms-23088 I'm trying to add a settings menu to let the user choose one of…
3
votes
1 answer

Set Wallpaper with bitmap avoid crop and set fit center

I'm trying to make a Wallpaper Application. And I had big trouble during set wallpaper with bitmap. I try to figure out answer for a week. I want to set Bitmap in to wallpaper like avoid crop scaleType:fit_center(align center vertical, aspect…
HoJunLee
  • 338
  • 2
  • 5
  • 20
3
votes
1 answer

Seems like my little android app is running multiple instance

I know this is very lame but I'm totally new to android development. I'm writing a sensor based app which will change wallpaper each time the phone is shaked. Once the app is minimized it runs in background. It works wonderfully when I run it for…
Abhijit
  • 33
  • 6
1
2 3
11 12