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
61
votes
5 answers

How to fit video in Live wallpaper, by center-crop and by fitting to width/height?

Background I'm making a live wallpaper that can show a video. In the beginning I thought this is going to be very hard, so some people suggested using OpenGL solutions or other, very complex solutions (such as this one). Anyway, for this, I've found…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
30
votes
1 answer

How to make Animated Android Live Wallpaper?

Can anyone suggest me of any step by step tutorials on how to make and Android LiveWallpaper. I am not able to find any good tutorials and I am sort of new to this.
Swati Rawat
  • 1,729
  • 1
  • 19
  • 34
27
votes
1 answer

java.io.IOException: setDataSource failed.: status=0x80000000

I am trying to play url using media player in activity using: mediaPlayer = MediaPlayer.create(getApplicationContext(), Uri.parse("http://www.pocketjourney.com/downloads/pj/video/famous.3gp"), holder); It's working fine. Same code I use to set it…
CoDe
  • 11,056
  • 14
  • 90
  • 197
26
votes
2 answers

Setting live wallpaper programmatically

Is it possible to set a live wallpaper using some lines of code. For example, i want to tell my users that a live wallpaper is available "click here to set it".
prashant
  • 3,570
  • 7
  • 40
  • 50
18
votes
2 answers

How to play video as live wallpaper android?

Does anyone know how to play .mp4 video as live wallpaper? I searched a lot, but couldn't find the solution. I just found this one but I am not getting any idea from it. Please help me if you have any idea regarding this concept.
Hardik Joshi
  • 9,477
  • 12
  • 61
  • 113
16
votes
2 answers

Android Live Wallpapers -- OpenGL vs Canvas

I am a fairly "newb" Android developer, and I would like one of my first projects to be a live wallpaper, however I am conflicted on whether I should be focusing on Canvas or OpenGL for it. Being new to this I know I should master Canvas first…
Shamrock
  • 436
  • 1
  • 8
  • 17
15
votes
7 answers

How to set the Android Live Wallpaper icon (aka "thumbnail")

I built my first Android app. It is a Live Wallpaper designed for 2.2. When I press and hold the screen, select Wallpapers and then select Live Wallpapers, my live wallpaper has what looks like a default icon with the name of my live wallpaper…
philcolbourn
  • 4,042
  • 3
  • 28
  • 33
14
votes
3 answers

Hardware accelerated FFmpeg on android?

I compiled an older version of FFmpeg for Android (if I recall correctly it was 0.6.X). FFmpeg decodes a video frame, scales it, then I'm using OpenGL to draw it on the screen. As far as I can tell, the problem is the decoding and scaling---they're…
U Avalos
  • 6,538
  • 7
  • 48
  • 81
13
votes
3 answers

"Theming Icons" functionality crashes live wallpapers on Android 12

I recently noticed that my live wallpaper apps are crashing when users try to set the newly introduced "Theming Icons" functionality on Android 12. This new functionality calculates a palette of colors from the user's current static wallpaper and…
Ardi
  • 285
  • 3
  • 8
13
votes
1 answer

Android Live Wallpaper practices for performance and battery saving?

It's easy to find many articles discussing the implementation of Live Wallpapers for beginners, which addresses major questions involving Surfaces and so on. But what about the professional development of Live Wallpapers? What are best practices for…
Erick Petrucelli
  • 14,386
  • 8
  • 64
  • 84
13
votes
2 answers

Android Playing Movie Files In A Live Wallpaper

Is this even possible? I have tried using the MediaPlayer but it throws a NullPointerException on the MediaPlayer object. I can get audio to work but video wont. mp=MediaPlayer.create(getApplicationContext(), R.raw.sample); mp.start(); …
12
votes
1 answer

How do I move to Live Wallpaper preview from app?

I've been looking all over for a specific example of this and couldn't find it online anywhere. What I want to do is: From my app click a button and move to the Live Wallpaper preview of my apps live wallpaper, so the user can choose to activate it.…
Brandon Romano
  • 1,022
  • 1
  • 13
  • 21
12
votes
1 answer

GL Wallpaper example only shows green screen in Emulator, but it's working in device

Do there is any special emulator settings needed to run OpenGL Apps? I already set "GPU emulation" property to "yes". I am trying to run an Android sample live wallpaper, using the sample source found from this link, The desired output is a rotating…
Renjith K N
  • 2,613
  • 2
  • 31
  • 53
11
votes
4 answers

VideoView in a live wallpaper?

As per other questions android-video-as-a-live-wallpaper, is the only way to play a video in a live wallpaper is to decode it yourself?
U Avalos
  • 6,538
  • 7
  • 48
  • 81
11
votes
2 answers

Prevent Live Wallpaper orientation change when an application is opened and orientation is changed?

I'm having an orientation issue with a Live Wallpaper that I wrote. Basically the canvas will rotate depending on the application opened above it. I tested this and realized that the onSurfaceChanged() method is firing when I return to the home…
worked
  • 5,762
  • 5
  • 54
  • 79
1
2 3
46 47