Uploading new resisions for files in dropbox -


i want add revisions document(test.doc) in dropbox using android api. tried

    fileinputstream inputstream = null; try {                          dropboxinputstream temp = mdbapi.getfilestream("/test.doc", null);      string revision = temp.getfileinfo().getmetadata().rev;      log.d("revision : ",revision);       file file = new file("/sdcard0/renamed.doc");      inputstream = new fileinputstream(file);                          entry newentry = mdbapi.putfile("/test.doc", inputstream, file.length(), revision, new progresslistener() {      @override     public void onprogress(long arg0, long arg1) {          log.d("","uploading.. "+arg0+", total : "+arg1);     } });   } catch (exception e) {      system.out.println("something went wrong: " + e);  } {      if (inputstream != null) {          try {              inputstream.close();          } catch (ioexception e) {}      } } 

while executing first time, new revision created. when executing same code second time, revisions getting created. please me resolve this.


Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

java.util.scanner - How to read and add only numbers to array from a text file -

iphone - Three second countdown in cocos2d -