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

android, android-intent

Solution

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);
    }
}

Problem

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

Original source