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

Wallpaper crashes with error - queueBuffer: error queuing buffer to SurfaceTexture

Live Wallpaper crashes, code below public void render(){ Canvas canvas = null; try{ canvas = this._surfaceHolder.lockCanvas(null); synchronized (this._surfaceHolder) { this.onDraw(canvas); } …
Rajesh
  • 380
  • 5
  • 13
10
votes
2 answers

How to create a settings activity for Android Live Wallpaper

How to create a settings activity in live wallpaper like this? Example Picture I've built settings activity with only a simple text and faced some problems. The first problem is that I can't use layout XML file for this activity. The second: I…
Finesse
  • 9,793
  • 7
  • 62
  • 92
10
votes
3 answers

Live Wallpaper in preview mode

I need my wallpaper to act differently when in preview mode (the screen with "Settings" and "Set .. "). How do i know when it's drawn there?
Misca
  • 459
  • 2
  • 11
  • 31
10
votes
0 answers

Set Live Wallpaper to the Android Lock Screen

Since Android API Level 24 the methods to set the wallpaper accept a parameter to be possible to specify which wallpaper we want to set (Lock or System). Unfortunately, I don't find a way to use it with Live Wallpapers. The methods available in the…
Sandro Machado
  • 9,921
  • 4
  • 36
  • 57
10
votes
2 answers

Find out if different home- and lockscreen wallpapers are set

I have a running live wallpaper and react to SCREEN_ON event to display changes on the canvas. However on some phones the user can set a different lockscreen and homescreen wallpaper (Touchwiz, some Xperia devices). When the user has set a different…
Thrakbad
  • 2,728
  • 3
  • 23
  • 31
9
votes
1 answer

android.media.audiofx.Visualizer throwing exception every other time

I'm making a Live Wallpaper for Android 2.3.3 and it used the Visualizer class. I've already got a working version of my Visualizer program working as a stand alone but when I place the code into a Live Wallpaper service, my problem begins. The…
Foggzie
  • 9,691
  • 1
  • 31
  • 48
9
votes
2 answers

Live Wallpaper Preview Thumbnail Size

What's the width and height of the live wallpaper preview thumbnail in pixels? It's definitely larger than 72x72, that I know.
worked
  • 5,762
  • 5
  • 54
  • 79
9
votes
2 answers

Detect touch event of navigation buttons inside a service having window

I am building a app which starts a service on some event. The service have a overlay view on top of every app (like facebook chat head). I want to stop the service and remove the overlay view on click of navigation soft key buttons (back, home and…
Ajeet
  • 1,540
  • 1
  • 17
  • 30
9
votes
2 answers

Error 1 libavcodec.so File format not recognized Android GL Live Wallpaper

I am trying to make a Live Wallpaper for android that plays an .mp4 video located on the device in android-asset (with the example I am using, it actually copies the file to the sdcard at runtime/doesn't matter) I found this example And using this…
laidbackjake
  • 536
  • 4
  • 10
9
votes
1 answer

onOffsetsChanged not called by Touchwiz

Note: since it is a question specific to Samsung, I also asked it on their developer board. I am currently implementing a Live Wallpaper in Android and I'm listening to the onOffsetsChanged() method in my wallpaper engine to change the wallpaper…
Thrakbad
  • 2,728
  • 3
  • 23
  • 31
8
votes
1 answer

"fixing" a live wallpaper in portrait mode

I'm trying to find the "simplest" way to fix my live wallpaper in portrait mode, and, as for now, the only way I found is to rotate the entire canvas by 90 degrees counter-clockwise and shift it "down" by the screen width size when the device is in…
user852690
  • 111
  • 1
  • 11
8
votes
2 answers

How to use camera live feed as a activity background?

I am trying to make an App in which I need to use camera live feed as a background. (I know its a stupid thing to do but can't help, its a client demand). I have tried doing it using SurfaceView but no success so far. So far whatever I found on…
Varundroid
  • 9,135
  • 14
  • 63
  • 93
7
votes
3 answers

How to set Live Wallpaper automatically everyday in android

I am developing a wallpaper app. We can add simple wallpaper automatically by using the following code with a service. final WallpaperManager wallpaperManager = WallpaperManager.getInstance(this); final Drawable wallpaperDrawable =…
Himanshu
  • 1,066
  • 6
  • 19
  • 44
7
votes
4 answers

Android video as a live wallpaper

i am trying to put video as a live wallpaper. I am using media player for that. i can get SurfaceHolder and i can give that holder to the media player. But its not working for me, its giving me following exception LogCat Exception…
user593443
  • 73
  • 1
  • 4
7
votes
1 answer

How do I create an application without a main activity in android studio?

I am creating a live wallpaper in android studio. I do not want any UI besides the wallpaper, so my application contains no activities. However, when I try to deploy to a device, I get the following error and my wallpaper will not load. Could not…
Cameron Martin
  • 5,952
  • 2
  • 40
  • 53
1
2
3
46 47