Creating own LiveWallpaperPreview?

Posted by Nick on Stack Overflow See other posts from Stack Overflow or by Nick
Published on 2010-05-01T11:53:09Z Indexed on 2010/05/01 11:57 UTC
Read the original article Hit count: 284

Filed under:

Hi,

I would like to create my own LiveWallpaperPreview, i.e. to show the user a fullscreen preview of what the selected Live Wallpaper looks like (without the "Set Wallpaper" and "Settings" button that the built-in preview has).

Rebuilding the LivePicker-Class from 2.1 (android.git.kernel.org) works fine, so I am able to select a wallpaper to be previewed, but the actual LiveWallpaperPreview-Class tries to import the following private Interfaces/Classes:

import android.service.wallpaper.IWallpaperConnection;
import android.service.wallpaper.IWallpaperService;
import android.service.wallpaper.IWallpaperEngine;
import android.service.wallpaper.WallpaperSettingsActivity;

Is there any way to display a LiveWallpaper in my app without resorting to using the private APIs (which I obviously don't want to do)?

Thanks!

Nick

© Stack Overflow or respective owner

Related posts about android