private String moveToFolder(final String file,final String folder){
  final File source=new File(file);
  final File destination=new File(folder + File.separator + source.getName());
  Log.i(TAG,file + " stored in temp folder. Moving to " + destination.getAbsolutePath());
  try {
    FileUtils.moveFile(source,destination);
  }
 catch (  final IOException e) {
    Log.e(TAG,"I/O error while moving file");
  }
  return destination.getAbsolutePath();
}

private String moveToFolder ( final String file , final String folder ) { final File source = new File ( file ) ; final File destination = new File ( folder + File . separator + source . getName ( ) ) ; Log . i ( TAG , file + " stored in temp folder. Moving to " + destination . getAbsolutePath ( ) ) ; try { FileUtils . moveFile ( source , destination ) ; } catch ( final IOException e ) { Log . e ( TAG , "I/O error while moving file" ) ; } return destination . getAbsolutePath ( ) ; }
moves file to specified folder
