Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

List all the dropbox files and folder using dropbox API and download file clicked in android

I have researched alot on google and also read the steps mentioned at www.dropbox.com, but I didn't found any way to list all the files and folders of dropbox in my application using dropbox API.. I know how to download a file from dropbox and also how to upload a file to dropbox.

But anyone pls suggest me that Is this possible to list all the files and folder of dropbox and whenever you click on any file then that file starts downloading and save into your sdcard..

Anyone pls help me out with some sample ....plsss

like image 571
Kanika Avatar asked May 11 '12 06:05

Kanika


Video Answer


1 Answers

simple sample.

Entry entries = mApi.metadata(Path, 100, null, true, null);

for (Entry e : entries.contents) {
    if (!e.isDeleted) {
        Log.i("Is Folder",String.valueOf(e.isDir));
        Log.i("Item Name",e.fileName);
    }
}
like image 128
Kuffs Avatar answered Sep 29 '22 10:09

Kuffs