title: Android: Add image to raw folder
body: <p>I am trying to set an image in gallery as a wallpaper using WallpaperManager but the setResource() excepts only images from the raw folder. And therefore I want to access the desired image and hence store it into the raw folder and use it to set the wallpaper.</p>
  
  <p>I am using :</p>
  
  <pre><code> buttonSetWallpaper.setOnClickListener(new Button.OnClickListener(){
              @Override
              public void onClick(View arg0) {
                  // TODO Auto-generated method stub
                  WallpaperManager myWallpaperManager = WallpaperManager.getInstance(getApplicationContext());
                  try {
                      myWallpaperManager.suggestDesiredDimensions(width, height);
                      myWallpaperManager.setResource(R.raw.batman_480_800);  // batman_480_800 is image in raw folder
                      Toast.makeText(MainActivity.this, "Wallpaper set successfully", Toast.LENGTH_LONG).show();
                  } catch (IOException e) {
                      // TODO Auto-generated catch block
                      e.printStackTrace();
                      Toast.makeText(MainActivity.this, "Some error", Toast.LENGTH_LONG).show();
                  }
              }
          });
      }
  </code></pre>
  
  <p>I need to know how can I add an image to raw folder and hence access it to set as wallpaper. Or there is any other way to do the same?</p>