List all Dropbox files and folder using Dropbox API and upload file by clicking on android

I searched a lot on google and also read the steps mentioned on www.dropbox.com, but I did not find a way to list all the dropbox files and folders in my application using the Dropbox API. I know how to upload a file from Dropbox, as well as how to upload a file to Dropbox.

But someone from PLS will tell me that it is possible to list all the files and the Dropbox folder, and whenever you click on any file, this file starts downloading and saving to your SD card.

Any pls help me with some samples .... plsss

+6
source share
2 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); } } 
+17
source

Use the /metadata method with the list parameter set to true to get all the information about the folder and its contents.

+10
source

Source: https://habr.com/ru/post/915473/


All Articles