How to set wallpaper in Android

I am using Android SDK 1.6. Could someone tell me how to set an image as the wallpaper in the homescreen.


seems to be not working for me.


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

<manifest xlmns:android...>
 <uses-permission android:name="android.permission.SET_WALLPAPER" />

Need Your Help

How do I call controller/view methods from the console in Rails?

ruby-on-rails console

When I load script/console, some times I want play with the output of a controller or a view helper method.

How can I use in_array if the needle is an array?

php arrays search compare

I have 2 arrays, the value will be loaded from database, below is an example: