cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
What’s new: end-to-end encryption, Replay and Dash updates. Find out more about these updates, new features and more here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Progress Listener for Downloads?

Progress Listener for Downloads?

Aaron M.10
New member | Level 1

Hello,

Just wondering if anyone knows whether the Dropbox API Core (Java) supports some sort of ProgressListener capability OR will I need to write one myself?

I have a website that uses the old "dropbox-java-sdk v1.3" (org.syncloud) and this came with a class com.dropbox.client2.ProgressListener that could be used to update the UI for download progress such that the progress of larger downloads could be presented to the user i.e. % completed of total bytes read. My users now expect this so updating to below version I have regressed functionality (or so it seems).

<dependency>
  <groupId>com.dropbox.core</groupId>
  <artifactId>dropbox-core-sdk</artifactId>
  <version>[1.7,1.8)</version>
</dependency>



Anyone come across this problem or know of a solution?

Thanks in advance. 

6 Replies 6

Rich
Super User II

Moved to the API forum.

Greg-DB
Dropbox Staff

Unfortunately, the current version of the Java Core SDK doesn't offer a progress listener, but I'll be sure to pass this along as a request.

Aaron M.10
New member | Level 1

Thanks Gregory.

1. 11
New member | Level 2

How to Obtain the java core sdk upload / download progress ?

Greg-DB
Dropbox Staff

The Java SDK still doesn't offer upload/download progress listeners, but I'll add your vote to the feature request.

Greg-DB
Dropbox Staff

The Dropbox API v2 Java SDK now offers progress listeners for uploads and downloads. This has been released in v3.0.9:

https://github.com/dropbox/dropbox-sdk-java/releases/tag/v3.0.9

There's an example of using it with with the uploadAndFinish method ( https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/DbxUploader.html#uploadA... ) for an upload here:

https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/upload-file/src/main/java/com/dropb...

It works the same way with file downloads; the download method ( https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/DbxDownloader.html#downl... ) optionally takes a ProgressListener parameter the same way.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    1. 11 New member | Level 2
  • User avatar
    Aaron M.10 New member | Level 1
  • User avatar
    Rich Super User II
What do Dropbox user levels mean?