SDK (DropboxSample) :
DropboxSample.java :
public void displayFiles(DropboxAPI.Account account) {
if (account != null) {
DropboxAPI.Entry dbe = api.metadata("dropbox", "/Public", 10000, null, true);
List<Entry> contents = dbe.contents;
if (contents != null) {
for (Entry ent:contents) {
Toast.makeText(this, ent.fileName(), Toast.LENGTH_SHORT).show();
}
}
}
}
LoginAsyncTask.java :
mDropboxSample.displayFiles(mAccount);
below mDropboxSample.displayAccountInfo (mAccount);
source
share