Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
AppDev
7 years agoExplorer | Level 3
Get a list of files from dropbox to android application
Hi everybody, I'm new to dropbox developing and I need help with it please. I wrote an android application that needs to get a list of files listing in dropbox. I used the tutorial and part of the co...
Greg-DB
Dropbox Community Moderator
7 years agoThat's the correct way to download a file. I just tried that line of code myself and it is working as expected for me.
It sounds like there's something else affecting this in your project, but I can't say off hand what that might be. We'll be happy to look into it further, but we'd need to be able to reproduce it here. Can you share a small sample project that reproduces the issue?
AppDev
7 years agoExplorer | Level 3
Hi Greg,
Sorry, it was my mistake... I didn't use Gson correctly, so when using it, I got inside the list the valuses ""/file1.txt"", ""/file2.txt"" etc. when I printed the values, I got "/file1.txt", "/file2.txt" instead of /file1.txt, /file2.txt. I thought that the extra "" are from the java println and that I'm getting the correct value...
Now everything is working for me and the files are downloading to my app.
I have no idea why the line with the hard coded file name didn't work before,
DbxDownloader<FileMetadata> downloader = client.files().download("/file.txt");
But it is working now, so all is good.
Thank you so much for helping me with everything! :)
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!