RE: [android-developers] Set wallpaper as background

2010-06-03 Thread Ericson, Anders
Hi,

In your AndroidManifest.xml you can add this to your activity:
android:theme=@android:style/Theme.Wallpaper

/Anders

-Original Message-
From: android-developers@googlegroups.com 
[mailto:android-develop...@googlegroups.com] On Behalf Of AndroidNewbie
Sent: den 3 juni 2010 05:49
To: Android Developers
Subject: [android-developers] Set wallpaper as background

Hi ,

I want to set current wallpaper as my application background . Any
ideas to do it through XML or Java code ?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Set wallpaper as background

2010-06-03 Thread Rajiv
You can also do it as:


WallpaperManager wlp = WallpaperManager.getInstance(*this*);

Drawable d = wlp.getDrawable();

textView.setBackgroundDrawable(d);
Regards,
Rajiv

On Thu, Jun 3, 2010 at 11:47 AM, Ericson, Anders 
anders.eric...@sonyericsson.com wrote:

 Hi,

 In your AndroidManifest.xml you can add this to your activity:
 android:theme=@android:style/Theme.Wallpaper

 /Anders

 -Original Message-
 From: android-developers@googlegroups.com [mailto:
 android-develop...@googlegroups.com] On Behalf Of AndroidNewbie
 Sent: den 3 juni 2010 05:49
 To: Android Developers
 Subject: [android-developers] Set wallpaper as background

 Hi ,

 I want to set current wallpaper as my application background . Any
 ideas to do it through XML or Java code ?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en