tags:

views:

90

answers:

1

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 stock-OS preview has).

Rebuilding the LivePicker-Class from 2.1 (android.git.kernel.org) works great, so I am able to let the user 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

+1  A: 

Hi,

You cannot do this. The live wallpaper picker is part of the Android operating system and cannot be replaced.

Romain Guy
Hi Romain,thanks for your answer. I don't want to _replace_ the picker, merely _use_ it for my own app: I just want to display a Live Wallpaper to my app's user. Is that not possible either? Thanks,Nick
Nick
I just figured out that you can use Theme.Wallpaper as your activity's theme to display the LW that is currently in use - far more simple than I would have thought :-)! However, Is it possible to display other wallpapers that the user has installed (that are different from the currently selected one) with this method?
Nick
Sorry there isn't a way to do this.
hackbod