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

Android liveWallpaper background

How do I scroll the background image on an ACTION_MOVE event? Here is my code used to draw the background image: void drawFrame() { final SurfaceHolder holder = getSurfaceHolder(); Canvas c = null; try { c =…
2
votes
3 answers

android: GLWallpaperService causing green screen

I am trying to create a live wallpaper using opengl (<2.0). I imported and tried to run Robert Green's GLWallpaperService and Example here (using Eclipse SDK). My phone is a Huwei Ascend Android 2.1. I already know it can run other opengl LWPs. When…
user589879
  • 51
  • 7
2
votes
3 answers

how to draw image in opengl android

i have to draw bitmap in to the my live wallpaper using this code but image will not loaded its showing null pointer exception. public class Square { private FloatBuffer vertexBuffer; // buffer holding the vertices private float vertices[]…
user1127616
2
votes
1 answer

Changing a program to a Live Wallpaper

I have a graphical program that I would like to manipulate to liveWallpaper.. I went through a couple of the tutorials and it looked like it fit the mold pretty well. So I started but soon I realized that LiveWallpaper doesn't SurfaceView. fine..…
DJPlayer
  • 3,244
  • 2
  • 33
  • 40
2
votes
1 answer

Can I create a live wallpaper with flutter?

I have already created a live wallpaper in Kustom Live Wallpaper (KLWP) android app. It shows much helpful information. But I need to use the KLWP app to run my live wallpaper. Is there any way to build an app with flutter that can provide live…
2
votes
0 answers

onOffsetChanged doesn't fire on HTC Sensation

I'm developing live wallpaper on Android and recently bought a HTC Sensation (android 2.3.3) for development. The problem that I found with this phone is that onOffsetChanged event is not generated at all. I logged calls inside onOffsetChanged…
d1011
  • 21
  • 3
2
votes
2 answers

Android's WallpaperService.Engine issues, workarounds required

During development of Live Wallpapers I jus got two issues and want to find the best possible workarounds. Issue#1: WallpaperService.Engine.onSurfaceCreated() and WallpaperService.Engine.onSurfaceChanged() called after…
Alexey Kryshen
  • 1,067
  • 2
  • 11
  • 15
2
votes
0 answers

Default Live WallpaperService leaks memory in Android

I'm currently using Android Studio to develop live wallpapers using the wallpaper service. As a result of the verification, it was found that a memory leak occurs and disappear(?) when the following operations are executed, but I do not know the…
2
votes
1 answer

onOffsetsChanged: move Bitmap

i want my Bitmap that has the height of the screen and has a bigger width than the screen to be moved a little bit to the right or left if the user changes the desktop so he can see the entire image. Here is my code that just works partially: …
ihucos
  • 1,821
  • 3
  • 19
  • 30
2
votes
1 answer

Android Live Wallpaper -- Force Portrait

This question has been asked before, but with no answer. Is it possible to force a live wallpaper to display in portrait mode at all times, ignoring orientation changes? As there is no activity, I cannot do this the normal way. Thanks!
Matt
  • 63
  • 8
2
votes
2 answers

Can a live wallpaper be linked to an app?

i'm new at live wallpapers. Is it possible to link a live wallpaper to an app with it's own engine? I mean, to avoid using the typical "Live wallpapers settings" where you choose the amount of items (mostly fishes xD), that you want in the…
Lucas
  • 21
  • 1
2
votes
1 answer

Activity UI on top of the current Android live wallpaper - how to have left or right swipes handled like on Android desktops?

I'm trying to create my activity's view on top of the current system wallpaper by setting or in the…
TechAurelian
  • 5,561
  • 5
  • 50
  • 65
2
votes
1 answer

Android: How to use a VirtualDisplay to host a WebView in a WallpaperService?

Background I have a web-based animation that I've turned into an Android app with live wallpaper: http://pixfabrik.com/livingworlds/ I've done so by creating a WebView and periodically copying its contents to the WallpaperService's Surface. Here's…
iangilman
  • 2,144
  • 1
  • 13
  • 16
2
votes
0 answers

Drawing simple graphics over video, Play video frame-by-frame in Surface by lockCanvas() using MediaCodec? Surface without attching to window?

I'm making a Live Wallpaper for Android API level 19+. My wallpaper consists of two layers. I want to play video on a background. It should to be transformable. I want to be able to change the scale and position of the video. In the foreground I…
2
votes
1 answer

Android Livewallpaper settings fail to load from 'configure...' menu

I am unable to load the live wallpaper preferences from 'Wallpaper>Configure...'. The preferences load fine when i click the settings button from within the Livewallpaper menu. Here are some screen shots to better explain the error: Error Log The…
RrD
  • 61
  • 6