Questions tagged [live-wallpaper]

Live wallpaper is an Android 2.1+ feature that adds the potential for animation and interactivity.

Live wallpaper is specific to Android. It was introduced in v2.1 (froyo). Most (but not all) phones running 2.1 support it; all phones running 2.2+ support it. Android Market filters searches so that only supported phones can find published wallpapers (android.software.live_wallpaper).

Live wallpaper allows the programmer to create an Android service (as opposed to an activity) that supports animation, interactivity, and scrolling. The SDK contains sample code for a live wallpaper that displays an animated cube and dodecahedron.

The novice live wallpaperer should start there. The Android source distribution contains code for some "standard" wallpapers that ship with most phones. AndEngine supports live wallpaper creation, as does LibGDX and GLWallpaperExtension.

701 questions
3
votes
1 answer

Maintaining Single Instance of Live Wallpaper Renderer

I have a live wallpaper application which loads multiple user-selected images as bitmaps. This process is very memory intensive, as multiple bitmaps are loaded. The application crashes on some phones if the live wallpaper is already applied and then…
shpen
  • 53
  • 5
3
votes
1 answer

Android "Failure delivering result ResultInfo" when Intent is NOT null

I have a custom image preference in my Live Wallpaper that allows a user to choose an image from their SD card to use as a background. I got the code from here and haven't modified it, so it's almost exactly the same except for variable or object…
3
votes
0 answers

Setting the background of an activity to a custom livewallpaper

It's possible to set the background of an activity to show a livewallpaper by using or extending @android:style/Theme.Wallpaper. However using that theme will only show you the current livewallpaper that the user has chosen, is it possible to…
stealthcopter
  • 13,964
  • 13
  • 65
  • 83
3
votes
1 answer

How to have a live wallpaper that can scroll while showing a video?

Background I've been familiar with using Canvas to draw a Bitmap in a live wallpaper, and eventually I also tried out playing GIF animation in a live wallpaper (here) and a simple video playing (here) The problem I wanted to make it more efficient…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
3
votes
1 answer

Android Live Wallpaper Tap Event

When you want to handle a click in your life wallpaper you should use onCommand and wait for the action WallpaperManager.COMMAND_TAP. This is described e.g. in the discussion thread: Android Live Wallpaper Touch Event Hierarchy. This works fine on…
Gizmomogwai
  • 2,496
  • 1
  • 20
  • 21
3
votes
1 answer

Does the Honeycomb android:hardwareAccelerated="true" manifest setting apply for Live Wallpapers?

I have a live wallpaper that I originally coded to use canvas rendering for phone-sized screens. But when running it on a Xoom tab the framerate degrades noticeably, presumably due to the increased screen resolution. I tried adding…
3
votes
2 answers

min3D in a live wallpaper service?

I have been playing around with the min3D libraries a bit lately learning how to use the openGL functionality of Android (it's been frustrating lol). I am trying to modify the GLWallpaperService @ https://github.com/markfguerra/GLWallpaperService…
Joey
  • 142
  • 2
  • 14
3
votes
3 answers

Programmatically restart a Live Wallpaper?

Is there a way for a Live Wallpaper to restart itself?
U Avalos
  • 6,538
  • 7
  • 48
  • 81
3
votes
1 answer

Android live wallpaper based on the current wallpaper

I'm trying to create a live wallpaper which uses the current device wallpaper as its background. You can see a good example of it in the 'Bubbles' live wallpaper, which does exactly what I need. I have tried using transparent canvas but no luck. Any…
Erez
  • 156
  • 2
  • 4
3
votes
1 answer

Setting the live wallpaper not working

I already asked this, but it was migrated to android.stackexchange.com and closed there as offtopic. So here we go again: I made a simple live wallpaper. On the preview I can see it but if I try to set it as my live wallpaper Android keeps the old…
ihucos
  • 1,821
  • 3
  • 19
  • 30
3
votes
0 answers

Is it possible to switch between Engine-classes on live wallpaper?

Background Suppose I have a relatively simple live wallpaper app which shows simple content via Canvas, by using surfaceHolder.lockCanvas() (sample here). The live wallpaper class (that extends WallpaperService) has to have an Engine returned to it…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
3
votes
1 answer

Android live wallpaper fade effect

I would like to ask about fade and slide effect in live wallpaper. How can I make fade in/ fade out or slide in/ slide out effect in live wallpaper when change between two images. If someone knows, please help me! Thanks for reading!
kikura
  • 185
  • 2
  • 11
3
votes
2 answers

Android, show dialog when ListPreference item is clicked

Basically I have a ListPreference to allow a user to change the X position of some text on my Live Wallpaper. It contains 4 entries: top, middle, bottom and manually input X. The first 3 options are no problem, I simply get the SharedPreferences in…
William Stewart
  • 841
  • 1
  • 14
  • 27
3
votes
3 answers

Android live wallpaper service not getting destroyed

I have created a Live Wallpaper which takes a file chosen by the user to be the background image. The problem I'm having is that when I click 'Set Wallpaper' it begins my wallpaper service, then if I go back into my live wallpaper and click 'Set…
William Stewart
  • 841
  • 1
  • 14
  • 27
3
votes
2 answers

Android - Can we use flash file(.flv or .swf) to make a live wallpaper for an android device?

I have tried searching internet for a sample which could guide me to use a flash file as a live wallpaper in my app. May anyone explain what steps do i need to take to use it. If possible then please explain with some code snippets. Any help would…
Varundroid
  • 9,135
  • 14
  • 63
  • 93