I am guessing this is what u want,

WallpaperManager manager = WallpaperManager.getInstance(this);
try {
manager.setResource(R.drawable.wallpaper);
 } catch (IOException e) {
e.printStackTrace();
}

U need to add SET_WALLPAPER permissions in ur manifest file.

Hope this helps.


Regards,
Saurav Mukherjee.


On Fri, May 20, 2011 at 10:24 AM, Spooky <spooky1...@gmail.com> wrote:

> On May 19, 11:25 pm, Saurav <to.saurav.mukher...@gmail.com> wrote:
> > You mean wallpaper for phone home screen?
>
> Ok, here's a chance for me to possibly clear up my own confusion.
> I've
> been under the impressions that A) the home screen is THE screen
> that you get when you press the HOME button, and that the rest are
> other screens, and B) that ALL of the phone's screens are Home
> screens.......
>
> I'm talking about wallpaper that you load on the backgrounds of the
> seven screens.
>
> I'm working on a photography app, and I want the user to be able,
> if they want to do so, to load any of my photos (which, before the
> app is built, are in res/drawable) on their Home screen/screens.
>
> I've been looking every day until my eyes start screaming, and after
> that, I've kept looking until my eyes go totally blurry for the rest
> of
> the day (and beyond, sometimes) for just under a week, and have
> gotten lots and lots of unrelated pages, but nothing relevant so far.
>
> Later,
>    --jim
>
> --
> 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

Reply via email to