title: android - add images from drawable folder into a created file directory
body: <p>I'm looking to be able to take png images (called 1.png, 2.png, 3.png) that I have stored in my apps drawable folder and copy/save them to a file directory that is created by my app on launch.<br>I've tried <code>.createnewfile()</code> but was unable to get anything to work.<br><br>code for creating my file directory below:<br></p>
  
  <pre><code>//-----create file directory for images
  public void createDirectory() {
  
      try {
  
          File imageDirectory = new File(Environment.getExternalStorageDirectory() + "/DCIM/C2AT_IMAGES");
  
          if (!imageDirectory.exists()) {
  
              imageDirectory.mkdirs();
  
              //something here to take images from drawable folder and place them into my newely created directory
  
              File imageFile = new File(Environment.getExternalStorageDirectory() + "/DCIM/C2AT_IMAGES", //something here getDrawable maybe?
                      );
              imageFile.createNewFile();
  
  
          }
  
      }
  
      catch (Exception e) {
  
          Log.d("MAKE_DIR", "error creating directory");
  
      }
  
  }
  </code></pre>
  
  <p>thanks</p>