views:

331

answers:

1

Hi,

I am using Android SDK 1.6....could someone tell me how to set an image as the wallpaper in the homescreen... getApplicationContext().setWallpaper(); seems to be not working for me...

+1  A: 

You have to add the SET_WALLPAPER permission to your AndroidManifest.xml

<manifest xlmns:android...>
 ...
 <uses-permission android:name="android.permission.SET_WALLPAPER" />
</manifest>
Cristian
thanks a lottt !!!! i was goin crazy figurin out what the issue was :) ....
XaB
hey if u found the answer to be correct then y not accept it by marking it as "answered"!!
JaVadid
XaB - please mark this topic "answered" so it goes off the "unanswered questions" list (and Cristian gets the points he deserves.)
EboMike
Thanks for your comment. Unfortunately, the user that creates the question is not too experienced at using StackOverflow. It happens everyday. Bye!
Cristian