Thursday, 15 April 2010

java - Sync dropbox file for android -



java - Sync dropbox file for android -

i wondering why file not updating dropbox. creates empty file.

final string test_file_name = datetime + ".txt"; dbxpath path = new dbxpath(dbxpath.root, test_file_name); seek { if (!filesystem.exists(path)) { newfile = filesystem.create(path); seek { newfile.writestring("hello world!"); } { newfile.update(); newfile.close(); } } } grab (dbxexception e1) { // todo auto-generated grab block e1.printstacktrace(); } grab (ioexception e1) { // todo auto-generated grab block e1.printstacktrace(); }

solved: never unlinked dbxacc , kept relinking, causing errors show up! silly mistake.

java android file api dropbox

No comments:

Post a Comment