Sunday, April 08, 2012

How To Create Android Live Wallpaper


Starting with Android 2.1. (API Level 7), developers can create live wallpapers - richer, animated, interactive backgrounds - on their home screens. A live wallpaper is very similar to a normal Android application: you can create menu with settings, use SGL and OpenGL for drawing, accelerometer, etc.

In this article, I want to demonstrate how to create live wallpaper from scratch. Step-by-step, we will create live wallpaper that would output TV test pattern on out home screen. Just like on real TV during night hours!
This article will highlight the following aspects of Live Wallpaper development:

Drawing on graphic primitives (circles, rectangles) using class
Developing of applications for screens with different resolution and orientation
Creation of settings dialog for live wallpaper
Reading of variables values for resource XML file
Actual creation of live wallpaper for Android

In this article, I show how to create a very simple live wallpaper.

On the internet, you can find much more profound and cooler apps, but I want you to check the following examples:

CubeLiveWallpaper - Android SDK sample
Mario Live Wallpaper - Awesome!!!
AndEngine Live Wallpaper - Creating live wallpapers using AndEngine
Using the Code

1. Making Android Virtual Device

As I mentioned earlier, we have to create an appropriate Android Virtual Device (AVD) to run our application.

Read more: Codeproject
QR: Inline image 1

Posted via email from Jasper-Net