title: Moving files in the sdcard
body: <p>I have been trying to move files within the sd card but to no avail: Here is the code:</p>
  
  <pre><code>try {
              File sd=Environment.getExternalStorageDirectory();
              // File (or directory) to be moved
              String sourcePath="mnt/sdcard/.Images/"+imageTitle;
              File file = new File(sd,sourcePath);
              // Destination directory
              String destinationPath="mnt/sdcard/"+imageTitle;
              File dir = new File(sd,destinationPath);
  
              // Move file to new directory
              boolean success = file.renameTo(new File(dir, file.getName()));
              if (!success) {
                  handler.post(new Runnable(){
                      @Override
                      public void run() {
                          Toast.makeText(getApplicationContext(), "File moved", Toast.LENGTH_LONG).show();
                      }
                  });
              }
  
          } 
          catch (Exception e) {
          }
  </code></pre>
  
  <p>I dont know wasup.Will appreciate the help.</p>