@Override public boolean downloadFile(String path,String dest){
  try {
    FileOutputStream fos=new FileOutputStream(new File(dest));
    mDBApi.getFile(path,null,fos,null);
    fos.close();
    return true;
  }
 catch (  DropboxException e) {
    e.printStackTrace();
    return false;
  }
catch (  FileNotFoundException e) {
    e.printStackTrace();
    return false;
  }
catch (  IOException e) {
    e.printStackTrace();
    return false;
  }
}

@ Override public boolean downloadFile ( String path , String dest ) { try { FileOutputStream fos = new FileOutputStream ( new File ( dest ) ) ; mDBApi . getFile ( path , null , fos , null ) ; fos . close ( ) ; return true ; } catch ( DropboxException e ) { e . printStackTrace ( ) ; return false ; } catch ( FileNotFoundException e ) { e . printStackTrace ( ) ; return false ; } catch ( IOException e ) { e . printStackTrace ( ) ; return false ; } }
downloads a file from the dropbox to a given location
