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
1
vote
1 answer

Glide crop image without image view

Am trying to set wallaper in the backround with glide.It all works fine but the applied wallaper is of like the corners of the image.Since am ruuning it in job Service i cannot use a image view to scale the image.Is there any way to crop the image…
Noyal Jose
  • 187
  • 3
  • 15
1
vote
1 answer

How do I center an Android wallpaper bitmap with WallpaperManager?

The code I am using to set a background to a bitmap is wallpaperManager.setBitmap(result, null, true, WallpaperManager.FLAG_SYSTEM); wallpaperManager2.setBitmap(result, null, true, WallpaperManager.FLAG_LOCK); However, the image is not centered and…
1
vote
0 answers

Wallpaper manager crashes when image is loaded with transition

I use Glide to load the image from URL and set it as wallpaper, however when transitions are applied to glide the image loads with the transition but when the image is set as wallpaper the app crashes (when loaded without transition everything works…
1
vote
1 answer

How do I change wallpaper periodically using WorkManager?

I am trying to change the wallpaper of Android, in some periodic interval. I used WorkManager to run a worker, that downloads the wallpaper in the background and sets it. As long as the app is running, the wallpaper is changed. When I close the…
This Guy Codes
  • 125
  • 1
  • 4
1
vote
2 answers

In Android 8 (Oreo) Intent Chooser is not working to set WallPaper

I'm using following code snippet to set wallpaper. In all version lower than Android 8 (Oreo) it shows a picker to choose lock screen or home screen or both etc. But in Android 8 it directly sets the wallpaper at Home screen without any…
Usman Rana
  • 2,067
  • 1
  • 21
  • 32
1
vote
0 answers

No package identifier when getting value for resource number 0x00000002

I am trying to retrieve current lock screen wallpaper but my app crashes. Drawable drawable = WallpaperManager.getInstance(MainActivity.this).getDrawable(); getDrawable(WallpaperManager.FLAG_LOCK); I am getting this error. No package identifier…
Waheed Abbas
  • 187
  • 1
  • 4
  • 18
1
vote
1 answer

Set LockScreen Wallpaper Programmatically Android

I am building a wallpaper application using unsplash api. I have fetched the images and displayed in the app. I have a button which shows a dialog to set as home screen (works fine) or lock screen wallpaper. The problem here occurs when I try to set…
Andromeda
  • 230
  • 1
  • 7
  • 22
1
vote
0 answers

How to automatically change wallpaper after every 30 seconds using JobScheduler?

I am creating application where there is an option of checkbox allowing user to change wallpaper automatically after 30 seconds. I am using JobScheduler and have passed arraylist of images by serializing them to JsonArray and then to String and…
1
vote
0 answers

Is it possible to query apps for their wallpapers?

There are apps that offer their own wallpapers, such as Nova Launcher, and Google's Wallpapers: My question is simple: Is it possible to query such apps for their wallpapers (images and maybe more information) ? If so, how? Is there anything…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
1
vote
1 answer

Wallpaper not scaled to the device's display

I want to set the image as wallpaper of the device by clicking on a button, I set the click listener (setWall) but the image is not scaled to the device's display. imageBrought = getIntent().getExtras().getString("appMomentImage"); …
Nicco
  • 47
  • 12
1
vote
1 answer

Resizing wallpaper after reboot

I build my custom launcher for Android 4.4.2 and have some problem with wallpapers. When I set new wallpaper everything is good image fit to screen, but after reloading device, wallpaper gets scaled and I see the only center part, even if screen…
1
vote
1 answer

On Image selected , set as wallpaper

I am new to Android development. For learning purpose, I used an app from github. This app consists of a wallpaper, which changes when the user swipes. I want to know, if there is a way that, on longpress on that image, the user can set that image…
cod
  • 151
  • 4
  • 13
1
vote
0 answers

Why setting a 1x1 pixel wallpaper fails on (a few) Android devices?

To set a black or solid color wallpaper on an Android device, one can use a tiny 1x1 pixel image with the pixel set to that color. This works on most Android devices (including Nexus devices and others that run stock Android). The system knows how…
1
vote
1 answer

Wallpaper app crashing on clicking set button

I have been trying to make a wallpaper app. When we click on a specific image from the gallery, it opens a new activity as below, where the image is displayed in full size and there is a button to set it as the wallpaper. I am using Glide library to…
1
vote
1 answer

android Scrollable wallpaper on screen's phone programmatically

I am developing a wallpaper application in Android and i am finding a right way to set scrollable wallpaper for my app. Now, my code can set wallpaper from bitmap but it was cropped to fit with one page and just stayed only on one page (i have 5…
user4813855