Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
Mob A.
10 years agoNew member | Level 1
Error downloading multiple files from dropbox to the phone via the Sync API
Hi,
I am trying to sync a specific folder from dropbox to the mobile using the Sync API in my Android app. I use the listFolder method to get the contents of the folder and then iterate over the d...
Greg-DB
Dropbox Community Moderator
10 years agoThe metadata is cached, so there's no harm in calling listFolder as much as needed. We definitely don't recommend serializing/deserializing the objects though, as there is some special initialization that occurs, which you won't get when deserializing and could cause problems.
Anyway, you're correct that there's currently no way to download an entire folder at once besides looping through all the desired files and opening them. The Sync SDK wasn't designed with a convenient way to do so since it was meant for mobile devices and the intent was that data would only be downloaded if/when necessary (e.g., when the user wants to interact a particular file's content).
Can you post your new code without the serializing/deserializing so we can continue investigating? (It may be worth uninstalling/reinstalling the app in case you have some corrupt state due to that.)
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
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!