title: Get current displayed image from ImageSwitcher
body: <p>Hello I build an application with an imageswitcher and a button.
  When I press the button I need to set as wallpaper the current image displayed in the imageswitcher.</p>
  
  <p>How can I get the full image path from the current displayed image? (like R.drawable.myimage) </p>
  
  <p>I found getDisplayedChild() but is not doing what I need.</p>
  
  <p>Here is my code:</p>
  
  <pre><code> WallpaperManager myWallpaperManager
               = WallpaperManager.getInstance(getApplicationContext());
              try {
                  int imageid = iSwitcher.getDisplayedChild();
  
              myWallpaperManager.setResource(imageid);
               alerta();
               System.out.println(pics[imageid]);
              } catch (IOException e) {
               // TODO Auto-generated catch block
               e.printStackTrace();
              }
  </code></pre>