Thursday, October 22, 2009

Setting Wallpaper

In this tutorial, I am going to explain, how to set wallpaper through android application. The code for this is,


Intent intent = new Intent();
intent.setAction(Intent.ACTION_SET_WALLPAPER);
startActivity(intent);


We have to give permission also in Manifest file as


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


The screen-shot for the above program will be as,

1 comment:

  1. wallpaper permission not required when launching settings. i have tested it.

    ReplyDelete

Androidians