How to set wallpaper in Android

I am using Android SDK 1.6. Can someone tell me how to set the image as wallpaper on the desktop.

getApplicationContext().setWallpaper(); 

doesn't seem to work for me.

+6
android wallpaper
source share
1 answer

You need to add SET_WALLPAPER permission on AndroidManifest.xml

 <manifest xlmns:android...> ... <uses-permission android:name="android.permission.SET_WALLPAPER" /> </manifest> 
+29
source share

All Articles