On May 18, 5:42 am, "pramod.deore" <[email protected]> wrote:

>              I am developing one application in that I want to change
> wallpaper. But I don't know how to do that. please help me

For old-school static wallpapers, there are two approaches. In Android
2.0 and above, you should be using WallpaperManager and its
setBitmap() or setResource() functions. Docs here:
http://developer.android.com/reference/android/app/WallpaperManager.html

On earlier Android versions, you'll need to use
Context.setWallpaper(). It still works in 2.x, BTW, although it's
deprecated; if you just want a simple call to set a bitmap as the
wallpaper across all current versions, this is your best bet. See
http://developer.android.com/reference/android/content/Context.html#setWallpaper(android.graphics.Bitmap)

For live wallpapers (in 2.1+), there's no way to set them from code.
You define it as described in the docs, then the user  needs to
install it themselves from the home screen.

String

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

Reply via email to