title: How to set a slideshow of images as android home screen(wallpaper) programmatically?
body: <p>I am able to set an individual image from the drawable as android home screen background/wallpaper via code as shown below</p>
  
  <pre><code>WallpaperManager myWallpaperManager
                          = WallpaperManager.getInstance(getApplicationContext());
                  try {
                      myWallpaperManager.setResource(+ R.drawable.splash);
                  } catch (IOException e) {
                      // TODO Auto-generated catch block
                      e.printStackTrace();
                  }
  </code></pre>
  
  <p>What I want to know is how to show a slideshow of images. More like image gets changed after a particular time interval,say 2 minutes. Considering the fact that it is possible and already implemented in several Wallpaper based apps available on Google Play Store, kindly share with me sample code or links. </p>
  
  <p>I do not intend to keep the app open or in the background at all times. I've done a fair amount of research online but I am not able to find examples or any efficient methods to do this. If there is any performance flaw to the idea I am open to suggestions.</p>
  
  <p>++
  Please let me make myself clear to avoid any confusion.
  I am able to set a particular image as my device wallpaper(not any layout or screen within my application). My requirement is to change that particular image from time to time considering the fact, Let's say I have dozen of images.</p>
  
  <p>Thanks in advance</p>