tags:

views:

151

answers:

3

I am trying to figure out some way to determine the current background on a phone and then set that background as my own in my application to create a seamless transition between my application and the phone. However I haven't been able to find any functions for this at Androids SDK site.

Setting android:theme="@style/Theme.NoBackground" inside my Manifest almost does what I want, but it still has the icons in the background.

Thanks in advance

A: 

Yeah the WallpaperManager was the answer, a little searching revealed this in one of the API Demos for anyone who needs this.

final WallpaperManager wallpaperManager = WallpaperManager.getInstance(this);
final Drawable wallpaperDrawable = wallpaperManager.getDrawable();

Obviously add the variable wallpaperDrawable to setBackgroundDrawable();

Honzo
Don't forget to "accept" answers to questions you post on this site -- just click the big "tick" icon under the most relevant answer.
Christopher
A: 

You should also be able to declare in your manifest that your activity should use the 'wallpaper' theme, like so:

<activity android:theme="@android:style/Theme.Wallpaper">
Roman Nurik
A: 

You can do call this.getWallpaper() in your Activity in prior 2.0.

Cytown