Questions tagged [wallpaper]

Wallpaper is the background image on one's "desktop" or "home screen."

Wallpapers vary from system to system both in function and nomenclature. In Mac OS X, the wallpaper is called the "desktop picture." It is a static image or series of images that the operating system cycles through. Its function is purely decorative. In addition to traditional (static) wallpapers, Android (v2.1+) offers "live wallpapers." Live wallpapers are similar to normal applications, though slightly different (they are services rather than activities, so their capabilities are not quite the same). Live wallpapers extend the traditional wallpaper concept by allowing for interactivity, animation, and access to system functions. One of the challenges facing the live wallpaper developer is that the wallpaper is often overlaid with icons, widgets, and the like, beyond the programmer's ability to control or often even to detect.

763 questions
1084
votes
22 answers

How to convert a Drawable to a Bitmap?

I would like to set a certain Drawable as the device's wallpaper, but all wallpaper functions accept Bitmaps only. I cannot use WallpaperManager because I'm pre 2.1. Also, my drawables are downloaded from the web and do not reside in R.drawable.
Rob
  • 15,041
  • 6
  • 25
  • 27
79
votes
5 answers

Change desktop wallpaper using code in .NET

How can I change the desktop wallpaper using C# Code?
Sauron
  • 16,668
  • 41
  • 122
  • 174
47
votes
5 answers

Android shared preferences not saving

I've created an Android live wallpaper and i'm trying to let a user choose an image from their phone and apply it as a background image, but when I launch the activity that start the intent to pick the images, my shared preferences don't seem to…
jOE
  • 491
  • 1
  • 4
  • 5
36
votes
8 answers

How to set android lock screen image

I'm just getting started with android programming, and want to see if there is a way to programmatically set the lock screen image. I've found various ways of setting the wallpaper in the API, but I can't seem to find the equivalent ways of setting…
robintw
  • 27,571
  • 51
  • 138
  • 205
27
votes
4 answers

Android - how to set the wallpaper image

Is it possible to set the android wallpaper image programatically? I'd like to create a service that downloads an image from the web and updates the home screen wallpaper periodically.
James Cadd
  • 12,136
  • 30
  • 85
  • 134
22
votes
6 answers

Get current wallpaper absolute path?

How do we get a current wallpaper absolute path
Sekar
  • 1,061
  • 7
  • 21
  • 38
18
votes
3 answers

Get current wallpaper

I'm pretty new to Android programming so bear with me. I was wondering if there was a method of retrieving the current wallpaper on an android device and saving it to a variable in your app's code. Thanks
moesef
  • 4,641
  • 16
  • 51
  • 68
18
votes
1 answer

Programmatically changing the iOS lock-screen

I'm building an app which would have to have the ability to show my own views on the iPhone lock screen. I've seen lots of apps which let you customize the lockscreen and so forth and these were App Store apps so i'm guessing it has to possible. I…
nextbighit
  • 199
  • 1
  • 1
  • 4
16
votes
1 answer

Change the wallpaper on all desktops in OS X 10.7 Lion?

I would like to change the wallpaper of all desktops (formerly "spaces") on a screen. As of OS X 10.6 there is a category to NSWorkspace which allows the setting of the wallpaper, however, when I use this function only the wallpaper of the current…
Robin
  • 8,197
  • 11
  • 45
  • 74
16
votes
2 answers

macOS Mojave Custom Dynamic Wallpaper

I've found that the default (and only) dynamic wallpaper in macOS Mojave Beta is in /Library/Desktop Pictures/. The file in question is called "Mojave (Dynamic).heic" I imagine that the file itself is probably some sort of mapping/dictionary from…
Artyom Pstygo
  • 161
  • 1
  • 1
  • 3
16
votes
2 answers

iOS 7 - Display user wallpaper as UIWindow background

How would it be possible to have an iOS app display the user's wallpaper? Apple uses this in places like the tab view in Safari and the keypad in Phone. Setting the transparency of UIWindow proved to no avail...
sgonzalez
  • 1,086
  • 9
  • 24
13
votes
3 answers

Android WallpaperManager crops image

I am working on a simple wallpaper app of some images that I have. They are .png files in drawable folders. Here are some code snippets: WallpaperManager myWallpaperManager = WallpaperManager.getInstance(getApplicationContext());…
yowza
  • 151
  • 2
  • 7
13
votes
5 answers

Drawing on the desktop background as wallpaper replacement (Windows/C#)

I'm trying to make an application that needs to draw on the desktop, behind the icons so it appears to replace the desktop wallpaper. I've found a few solutions to this, but most of them didn't work very well (lots of flickering). One solution seems…
nardi
  • 331
  • 1
  • 3
  • 9
12
votes
2 answers

How do I change my Windows desktop wallpaper programmatically?

I'd wish to set a wallpaper for Windows XP using C#. I've developed the code so it perfectly works in Windows 7, but apparently it's not the same for XP. I add that wallpaper as a resource, set its compile action as Content and Always copy. It,…
Sergi Juanola
  • 6,531
  • 8
  • 56
  • 93
11
votes
8 answers

Shell script changing desktop wallpaper

Could you write the easiest possible shell script that will change the desktop wallpaper (in Ubuntu) in regular intervals (e.g. 1 minute). Wallpapers will be saved in particular directory (e.g. $HOME/wallpapers). I need only basic functionality. 1)…
xralf
  • 3,312
  • 45
  • 129
  • 200
1
2 3
50 51