Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
蕾雷
8 years agoHelpful | Level 6
How do I cancel the process that is being downloaded?
When I use DbxDownloader <FileMetadata> .download to download, halfway to cancel the download call DbxDownloader <FileMetadata> .close to operate, but I got a NullPointerException exception, Message ...
蕾雷
8 years agoHelpful | Level 6
Thank you!
(1) Dropbox core API: 3.0.2
(2) Download the code reference: https://github.com/dropbox/dropbox-sdk-java/issues/66.
Download interface click back to cancel, call stopDownload function:
DbxDownloader<FileMetadata> : downloaer
public void stopDownload() {
if (downloaer != null) {
try {
downloaer.close();
downloaer = null;
} catch (Exception e){
downloaer = null;
e.printStackTrace();
}
}
}
(3) stopDownload throws an exception:
Greg-DB
Dropbox Community Moderator
8 years agoThanks! We'll look into it.
For our reference though, can you also share how you're constructing your client object?
For our reference though, can you also share how you're constructing your client object?
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!