We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
kiko r.
10 years agoNew member | Level 1
Where could I find a simple sample for download a file after login?
Android Core V2. I need a simple task that logs internally and then download a file. Only one action in a button. It is not complicated... but really for me it is.
My Java and android is poor, but I thinked that there is no problem with the example proposed. I checked the example with a lot of files that I don't need and I started adding files and analyzing the code to know how it works. Well, for me doesn't work. There are a lot of exceptions because you need libraries and have to add them to the project but after 4 days trying to solve different problems I give up.
I hate using support.v7 library because always cause me problems. I don't know why I have to use Picasso because I don't want to download photos. And after download a few libraries I have to stop when a java.lang.noclassdeffounderror apears due to com.squareup.http.okhttp.client. I read that Picasso use an old version of okhttp and also that I don't need okhttp library but there are neccesary for the example so at this moment, after 4 days, I never did a login succesfull.
It is my point of view that, first of all, we need simple examples and, after that, complex examples for experts. I cannot walk if I can do the first step.
I ask about a simple example for download a file with a simple button, no need list, folders, a complex view, etc. It is possible?
Thanks
2 Replies
- Greg-DB10 years ago
Dropbox Community Moderator
Thanks for the feedback, Kiko. I can't promise if/when we might write an example like that, but I'm sending it along to the team.
For reference, instructions for running the Android sample can be found here:
https://github.com/dropbox/dropbox-sdk-java/tree/master/examples/android
The app authorization flow specifically is triggered here:
The token storage is here:
And the example of downloading a file is here:
- kiko r.10 years agoNew member | Level 1
Thanks Gregory:
I know the related clases that you said, but the problem is that there are other classes related and libraries that throws different errors.
I hope that you or somebody in the team can suggest a simple example that helps me without importing different libraries that are not needed and generate different problems to not expert developers.
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!