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
4
votes
1 answer

dynamic text in live wallpaper

Welcome. I have a problem. I want to do dynamic wallpaper so that every few seconds to change the text. The program works pretty well because the text is changing, but changing so that the previous text is still visible, and after a few seconds I…
Dr Glass
  • 1,487
  • 1
  • 18
  • 34
4
votes
1 answer

Is there any way to bind to a live wallpaper service?

I have a live wallpaper which has some resources loaded and set up inside my custom WallpaperService class. Something like this: class MyLiveWallpaperService extends WallpaperService { MyResources sharedResources; public onCreate() { …
dimsuz
  • 8,969
  • 8
  • 54
  • 88
4
votes
1 answer

How to speed up shader loading/compiling on Android

I've written an OpenGL live wallpaper for Android that uses 17 pixel and 17 vertex shaders. On my HTC Legend, these take about 3 seconds to load and compile. Loading time is about 20% of this, the rest is compiling. A live wallpaper has its OpenGL…
Nils Desle
  • 81
  • 1
  • 5
4
votes
2 answers

Android: How to start activity from preference menu?

This is the Android Live Wallpaper. .LiveWallpaperSettings is main activity with settings preferences. <- works normally .AboutActivity is simple dialog activity. <- application craches I have the following code: AndroidManifest.xml:
Finesse
  • 9,793
  • 7
  • 62
  • 92
4
votes
1 answer

How to implement double tap for Android live wallpapers?

I want to implement a double tap event for a Android live wallpaper. Sadly, I couldn´t find any specific code how to do that. At the moment I´ve found a workarround using the onTouchEvent-method of the Engine-class: public void…
xong
  • 350
  • 4
  • 8
4
votes
1 answer

Get number of homescreens without calling onoffsetschanged (for wallpaper)?

I'm doing a live wallpaper. However, what is initially shown depends on the number of home screens. While onOffsetsChanged() allows you to calculate the number of home screens, it gets called only if the user scrolls the homescreen. So is there a…
U Avalos
  • 6,538
  • 7
  • 48
  • 81
4
votes
2 answers

Better frame rate drawing bitmaps in a Canvas?

I'm shooting for an animation in a live wallpaper. Here's the code. It pretty much follows the CubeWallpaper demo: void drawFrame() { final SurfaceHolder holder = getSurfaceHolder(); final BufferedInputStream buf; final Bitmap…
U Avalos
  • 6,538
  • 7
  • 48
  • 81
4
votes
1 answer

Android live wallpaper slide animation

At the moment I have my live wallpaper which takes an image chosen by the user, from their SD card and sets it as the background. Its coming along nicely, however I notice that many live wallpapers change the view of the background when the user…
William Stewart
  • 841
  • 1
  • 14
  • 27
4
votes
2 answers

Pass image from activity to class android (live wallpaper)

I am working on how to apply live wallpaper(GIF image). When I click on apply button the default gif image set as wallpaper. I'm getting all the images from firebase. So I want to set that image as wallpaper. I don't know how to pass that gif image…
Marsad
  • 859
  • 1
  • 14
  • 35
4
votes
1 answer

Weird Exception when Livewallpaper is set in Android

04-24 13:30:59.312: VERBOSE/RenderScript(6044): RS Thread exited 04-24 13:30:59.320: ERROR/libEGL(6044): call to OpenGL ES API with no current context (logged once per thread) 04-24 13:30:59.335: WARN/WallpaperService(6044): Ignoring updateSurface:…
CarlLee
  • 3,952
  • 5
  • 23
  • 33
4
votes
1 answer

How can i be notified "set wallpaper" hits in android Wallpaper Service?

I have a wallpaper service in my application which user should only use my application wallpapers. if user hits "set wallpaper" for the first time my wallpaper service will start to run. now if the user wants to set another wallpaper in my…
Ali Babadi
  • 114
  • 9
4
votes
2 answers

Android LiveWallpaper picker crash

I'm trying to create my own livewallpaper for Android. I have starting project that compiles and opens settings Activity. But after clicking button for select wallpaper picker crashes and appears following exception: FATAL EXCEPTION: AsyncTask…
Ircover
  • 2,406
  • 2
  • 22
  • 42
4
votes
1 answer

Way to restart live wallpaper

Is there any way to tell Android that I want to create new wallpaper engine or restart wallpaper service? To be more precise I want to integrate LWP with Unity3d. There are some solutions available for it, but they only work for Android versions…
4
votes
1 answer

Where should I initialize resources for an Android Live Wallpaper

I am developing a live wallpaper for Android. The wallpaper allocates some resources such as background bitmaps, sprites, textures, etc. The question is: where should I allocate and initialize all of the resources? Should I allocate them in…
ezpresso
  • 7,896
  • 13
  • 62
  • 94
4
votes
1 answer

How to create an Android Live Wallpaper with Delphi XE5?

Is it possible to create an Android Live Wallpaper (LWP) using Delphi XE5 (with Android development add-on of course)? It is fairly easy to develop a simple app for Android with Delphi XE5, but I could not find any info on how to make a LWP. Does…