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

How to create android live wallpaper using unity3d?

As written in the title, I'm trying to create an android live wallpaper using unity3d. Unfortunately, I can't find any information on how to do that.
Hamid Yusifli
  • 9,688
  • 2
  • 24
  • 48
5
votes
2 answers

WallpaperService Image Drawing Performance

I am working on a livewallpaper for Android. The code works, but I have performance issues. Basically I am drawing Bitmaps and move them. With 15 small images it workes fine. But with 50 bigger images it starts lagging. In my moving object I am…
user6586661
  • 432
  • 1
  • 11
  • 24
5
votes
1 answer

Parallax effect scrolling of live wallpaper background

I'm trying to get a background in a live wallpaper to behave like a regular wallpaper with regard to scrolling when the user changes homescreens. I know the method required for this is onOffestsChanged, but I can't seem to get it working. Does…
brmcmaho
  • 409
  • 5
  • 9
5
votes
2 answers

Choosing background for Live Wallpaper

I'm writing a live wallpaper that creates an effect over a background. I want the user to be able to choose the background from any of the system wallpapers and camera photos. What I would like is for the user to be able to press a button in the…
DarthNoodles
  • 370
  • 3
  • 11
5
votes
3 answers

Android live wallpaper onOffsetsChanged xPixelOffset doesn't seem to return the real pixel offset

I am writing a live wallpaper and I use the function: public void onOffsetsChanged(float xOffset, float yOffset, float xOffsetStep, float yOffsetStep, int xPixelOffset, int yPixelOffset) To see when the uses swipes across to…
stealthcopter
  • 13,964
  • 13
  • 65
  • 83
5
votes
1 answer

Callback when set Wallpaper is clicked in Android

can anyone tell me how to get callback when setwallpaper is clicked in live wallpaper. I want to do something when a user clicks on set wallpaper... I have tried many things bt cudnt get it to work.. Thanks in advance..
Paras Mittal
  • 1,159
  • 8
  • 18
5
votes
2 answers

Android screen orientation handling issue

I'm working on the android live wallpaper applications and need to correctly handle screen orientation changes. Currently I use onConfigurationChanged for this purpose(in this method I need to change coordinates of my LWP screen elements. I use…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
5
votes
2 answers

Set Live Wallpaper Programmatically on Rooted Device Android

Is it possible somehow to set Live Wallpaper programmatically using my Application? I am working on an Application that her purpose is to choose some of the Installed Live Wallpapers on the device and to set it as a Live Wallpaper. This action need…
Naskov
  • 4,121
  • 5
  • 38
  • 62
5
votes
2 answers

How to load resources or assets in GLWallpaper service

I am trying to develop an Android live wallpaper using OpenGL wallpaper service , I am able to create live wallpaper as in this example by Mark F Guerra But I want to add some sprite animation to my wallpaper. I have already created a OpenGL ES…
Renjith K N
  • 2,613
  • 2
  • 31
  • 53
5
votes
2 answers

SharedPreference Changes not reflected in my wallpaper service

I am making a live wallpaper where i need to change the speed of a vehicle in setting scene and it needs to get reflected back to the wallpaper service when i press the return button. In my preference activity, i save the list preference changes in…
5
votes
4 answers

IllegalArgumentException in unlockCanvasAndPost (android live wallpaper)

I've created my first live wallpaper implementing drawing in a separate thread. So now I have a WallpaperService and my WallpaperPainter who does the job. The problem is that I getting a IllegalArgumentException in unlockCanvasAndPost method on some…
Anton Zhuchkov
  • 361
  • 3
  • 9
5
votes
0 answers

Invoke a receiver on set the live wallpaper in android?

Kindly tell me how can I listen to live wallpaper change in android ? what i have tried: I have made a receiver in android which listens to wallpaper change action.
5
votes
0 answers

Wallpaperservice example in Android

How to use wallpaper service in Android?
CodeAndWave
  • 1,586
  • 3
  • 23
  • 33
5
votes
1 answer

Live Wallpaper Screen Rotation

I am currently working on a live wallpaper that is very intensive and does not handle screen rotation very well. In fact the wallpaper is destroyed and displays a blank screen without calling onSurfaceChanged! Here is what I have within the…
Denizen
  • 335
  • 5
  • 17
4
votes
2 answers

How do I detect whether my live wallpaper is running in the preview/"Set Wallpaper" activity or on the homescreen

I'd like to draw a text message only when the wallpaper is run from the live wallpaper selection app, in the preview activity. (With the "Set Wallpaper" and "Settings" buttons). Since I'll have a free and paid version, in the free one I'd also like…
Kai Stavginski
  • 549
  • 4
  • 9