简体   繁体   中英

How Should I get all images(including full URL) from Dropbox using Dropbox Core API in android app?

I need to get all the images on Dropbox with its full URL(not only name) as I need to display images as a list in my android app.

I am using Dropbox core API and called API as following:

DropboxAPI.Entry existingEntry= mDBApi.metadata("/", 1000, null, true, null);

Using above I got all the files listed and also got its name but couldn't get full URL of each file.

Any help is highly appreciated.

Thanks in advance.

This depends on what exactly you need to do, and if you actually need a URL, and if so, what kind of URL.

If you just need the content of the image files, you should use the getFile or getFileStream method to access the actual file content and display it as desired.

If you actually need a direct URL to the file contents, you can use media to get the URL. Note that these expire after four hours though.

If you need a longer-lived URL, eg, for sharing, you can get the (preview) URL by using share . (You can also modify these links for other behaviors as shown here .)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM