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

Live wallpaper is still running after i close it

I'm studing live wallpaper on Android. I notice that my wallpaper is still running despite i select another wallpaper. To reproduce this behavior, i will use a simple live wallpaper. The manifest is:
xcesco
  • 4,690
  • 4
  • 34
  • 65
3
votes
0 answers

Android WallpaperService onStartCommand is not called

I'm trying to create a live wallpaper that reacts to clicking a button on a widget. According to this How to build a Simple Android Widget I'm overriding onStartCommand in my WallpaperService class but it seems that it's not called. Here is my…
KrzysztofW
  • 57
  • 4
3
votes
1 answer

How to turn a gif into a live wallpaper for use in Android app

I don't need a fancy wallpaper which moves with your phone, I would just like to use a gif as a moving "live" wallpaper. Is this possible, and if so, could anyone explain to me how it is done, or point me to a resource which demonstrates how? I have…
djinne95
  • 275
  • 1
  • 3
  • 10
3
votes
1 answer

How to send text from Activity to WallpaperService class

I want to send text from MainActivity to WallpaperService class to draw Text. Main Activity class--> Intent in = new Intent(); in.setAction(WallpaperManager.ACTION_LIVE_WALLPAPER_CHOOSER); in.putExtra("name", "sample text"); …
abhi
  • 154
  • 16
3
votes
1 answer

No enclosing instance of TYPE is available due to some intermediate constructor invocation

I keep getting this error about No enclosing instance of my WallpaperService is available. So my program will not compile. What exactly does this error mean...? Where should I go from here. Below is my constructor for myEngine class. The error…
Randolph
  • 951
  • 2
  • 11
  • 24
3
votes
4 answers

Launch Intent from and to a WallpaperService

I have a live wallpaper which displays an image. I change that image in an activity. I then need to notify the live wallpaper, so it knows to reload the resources. Intents seemed like the perfect, simple, solution: Intent intent = new…
Twinsen
  • 458
  • 3
  • 12
3
votes
1 answer

Android LiveWallpaper: start rendering below notification bar

I'm doing a Android LiveWallpaper with LibGDX and I want my application to start rendering below the notification bar, and not under it. In the picture: Left is what I get, right what I want. Any advice? Thanks
zappp
  • 110
  • 9
3
votes
2 answers

Communicate with a WallpaperService

Is there any way to directly communicate with a WallpaperService from an Activity? It doesn't look like I can use the normal service communication classes because the onBind method is declared final in the WallpaperService class I'm extending. Worth…
Kevin Mark
  • 1,671
  • 1
  • 21
  • 49
3
votes
0 answers

Three colour gradient in livewallpaper

I am trying to create a gradient background for a live wallpaper. I can create it with two colours, but it won't allow me to have three. Here is the code that I am currently using: int[] colors = { Color.GREEN, Color.MAGENTA, Color.YELLOW }; float[]…
Blue_Android
  • 41
  • 1
  • 4
3
votes
4 answers

Can a live wallpaper lock the screen in portrait mode?

Can a live wallpaper lock the screen in portrait mode? And if so, how? I should mention that I have seen two supposed answers to this question on SO, one appeared inordinately complicated, I didn't understand it all and the answer was not accepted…
Mick
  • 8,284
  • 22
  • 81
  • 173
3
votes
0 answers

How should i set up the offset change in android live wallpaper (screen Scroll)

i am new to this, and this is my first android project and i cant seem to find out how to make the Bitmap work for me. i really need this code i dont know how to set the the offset change i need some help. here is a sample of my…
3
votes
1 answer

Create Android Live Wallpaper for any resolution

I'm a new Android developer, and I am creating android Live Wallpaper as the first project. How can I support multi resolution? I don't know whether I should scale images by code or change them according to resolution.
sadecom
  • 41
  • 1
  • 6
3
votes
2 answers

Create a Photo Gallery App for Android for Local Images

I want to create a photo gallery app for android which has the following functionality, "SET AS WALLPAPER" Option Navigation Buttons (Left - Right) Its more like a live wallpaper. I need to know if there are any source codes out there to help me…
thowzif
  • 103
  • 2
  • 3
  • 12
3
votes
0 answers

Android live wallpaper - onOffsetsChanged args never change

I'm trying to adapt Google's CubeLiveWallpaper demo to create a parallax effect in a live wallpaper. I've removed the cube and have my own image displaying and that's great, but I've hit a wall. My understanding is that I'm supposed to be able to…
mershal
  • 31
  • 2
3
votes
2 answers

Why physics body automatically moves upwards in andengine gles2 anchor center live wallpaper

I am trying to develop a live wallpaper using andengine gles2 anchor center , with some physics.But when i add a physics object it was moving upwards.instead of moving downward due to gravity what are the mistakes i am making please help me to…
Renjith K N
  • 2,613
  • 2
  • 31
  • 53