android- dropbox download files -


i working on android app support android dropbox api. sending files dropbox folder.now want download files , save sdcard. @ moment when trying download files gives me error

dropboxserverexception (nginx): 404 not found (file not found) 

here code

public void downloadfiles(string filename){         log.i("filename ",filename);           file mfile=new file(environment.getexternalstoragedirectory().getpath() + "/download1");         try {             fileoutputstream mfileoutputstream=new fileoutputstream(mfile);             dropboxfileinfo mdropboxfileinfo=mapi.getfile(filename, null, mfileoutputstream, null);             } catch (filenotfoundexception e) {             // todo auto-generated catch block             e.printstacktrace();             } catch (dropboxexception e) {             // todo auto-generated catch block             e.printstacktrace();             }     } 

filename printing on logcat. , file in photos folder in dropbox. not able download .

the filename problem. need "/photos/" + filename have mentioned inside photos folder not in root.

  dropboxfileinfo mdropboxfileinfo=mapi.getfile("/photos/" + filename, null, mfileoutputstream, null); 

Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

angularjs - ng-repeat duplicating items after page reload -