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
2
votes
0 answers

AndEngine LiveWallpaper UpdateHandler stops

i am working with the AndEngine live wallpapers. i have made a live wallpaper in which i have registered a updatehandler with the sprite it works perfectly.After setting this wallpaper the updatehandler still works fine but when i switch off the…
Usman Iftakhar
  • 278
  • 5
  • 17
2
votes
0 answers

Andengine LiveWallpaper timerHandler not working

I have made a simple live wallpaper in Andengine. In it, I have used a timerHanlder which is rotating the circle. But the problem is when I use it as the live wallpaper the timerhandler does not work and the sprite is static(not rotating) on scene.…
Usman Iftakhar
  • 278
  • 5
  • 17
2
votes
1 answer

Height of title bar from a Live Wallpaper

I would known how can I retrieve the height of a the title bar from an android LiveWallpaper? I know how do it from an activity : Height of statusbar?: Rect rectgle= new Rect(); Window window=…
PiR
  • 175
  • 9
2
votes
0 answers

Android 4.0.3 OpengL ES 2.0 issue

i develop live wallpapers using Opengl ES 2.0 engine. My wallapapers run smooth on 2.x Android Devices , but in 4.03 i see some strange things. 1st seconds (maybe a minute max) lwp runs smooth , but after that starts dropping frames especially when…
2
votes
0 answers

How do i get the selected live wallpaper on android?

I successfully retrieved the selected wallpaper from wallpaper manager and applied it to my app background with this code: ` LinearLayout parent = (LinearLayout) findViewById(R.id.linearLayoutParent); final WallpaperManager wallpaperManager…
Steve
  • 427
  • 4
  • 14
2
votes
1 answer

Use Current Wallpaper as live wallpaper background

I am getting the current wallpaper by using following code: final WallpaperManager wallpaperManager = WallpaperManager.getInstance(this); final Drawable wallpaperDrawable = wallpaperManager.getDrawable(); How can I create a bitmap from…
Badal
  • 3,738
  • 4
  • 33
  • 60
2
votes
0 answers

Andengine ParticleSystem as Livewallpaper problems

First, I'll post link here where all is described by another person already http://www.andengine.org/forums/gles2/particle-system-in-live-wallpaper-t8035.html Well, the thing is, I set the ParticleSystem as a livewallpaper, and after the phone goes…
Allen
  • 65
  • 9
2
votes
2 answers

Create alpha gradient on image to create fade effect

How can I apply an alpha gradient on an image so that it fades linearly? Right now, I'm creating rectangles of unit width and using it to draw the bitmap with a paint object with alpha value being changed in a loop. I only did it since I couldn't…
timemanx
  • 4,493
  • 6
  • 34
  • 43
2
votes
1 answer

Paint.setAlpha() sums up, if called several times

I am writing a LiveWallpaper for Android and I want to have a Bitmap with a certain amount of opacity to show. In the constructor of my LiveWallpaper Engine I set a Paint that I will use later on my Canvas: MyEngine() { ... mForeGroundPaint…
msal
  • 947
  • 1
  • 9
  • 30
2
votes
1 answer

Set Android live wallpaper by code, without user interaction

I want to automatically set the live wallpaper in Android by code, without any user interface for wallpaper selection. Simple wallpaper setting automatically setting is possible by code: final WallpaperManager wallpaperManager =…
Naveen
  • 21
  • 2
  • 7
1
vote
1 answer

Android Live Wallpaper is blank on device

I recently created my first android live wallpaper and it would not work on friends' devices, however it would work perfectly on my device. When a friend would load the signed, aligned apk, android would not render the wallpaper and instead would…
1
vote
0 answers

get xStep in onOffsetsChanged in Live Wallpaper

I'm writing a LWP with a Class extends WallpaperService and an overwritten onOffsetsChanged method. When I swipe the Homescreen I'm getting the Offset and Pixel values but not the Step values (xStep, yStep). The Step values are only initiated once…
user980175
  • 21
  • 1
  • 4
1
vote
1 answer

Moving Circle on Live Wallpaper

I have to draw a circle in live wallpaper when it touches the boundary the direction of drawing gets reversed (something like in zigzag format). The problem is i am able to draw circle in this format. But: How to remove the previously drawn circle…
Avtar Guleria
  • 2,126
  • 3
  • 21
  • 33
1
vote
1 answer

canvas / rotation / screen orientation

I'm almost done finalizing my first app (live wallpaper) for Android. The live wallpaper works in portrait mode, but when it gets rotated to landscape the background will be in the left and I only see a square in the left corner. In other words the…
Mars
  • 107
  • 1
  • 13
1
vote
1 answer

Using .gif file in android live wallpaper

My question is regarding this post Is it possible to set an animated gif file as live wallpaper in android? The method given in this post does not seem to work. When i put my animated .gif file in /res/raw folder, there is an error which says that…
Swati Rawat
  • 1,729
  • 1
  • 19
  • 34