Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
Hey everyone,
I am very new and trying to develop an app that will automatically connect to my dropbox account and dowload 10 or more pictures from a specified folder.
I have seach all over the internet and could not find a step by step tutorial to help me perform this.
I have found this github api, however I am totally new and do no know how I can use this in my android project.
Could someone please assist with a detailled tutorial?
Thank you
To use the Dropbox API v2 in Android, you should use the API v2 Java SDK:
https://github.com/dropbox/dropbox-sdk-java
There isn't a step by step tutorial for that in particular, but there's an example Android app that uses it included with the SDK:
https://github.com/dropbox/dropbox-sdk-java/tree/master/examples/android
You should refer to that as an example of how to implement the app authorization flow, which is accomplished via OAuth 2.
Your AndroidManifest.xml should be set up as shown here:
You start the flow by calling startOAuth2Authentication as shown here:
You complete the flow by calling getOAuth2Token as shown here:
Your app can store and re-use the resulting access token for that user, as the example does here:
To download files, you can use the download method as shown here:
To use the Dropbox API v2 in Android, you should use the API v2 Java SDK:
https://github.com/dropbox/dropbox-sdk-java
There isn't a step by step tutorial for that in particular, but there's an example Android app that uses it included with the SDK:
https://github.com/dropbox/dropbox-sdk-java/tree/master/examples/android
You should refer to that as an example of how to implement the app authorization flow, which is accomplished via OAuth 2.
Your AndroidManifest.xml should be set up as shown here:
You start the flow by calling startOAuth2Authentication as shown here:
You complete the flow by calling getOAuth2Token as shown here:
Your app can store and re-use the resulting access token for that user, as the example does here:
To download files, you can use the download method as shown here:
Thank you so much Greg.
Hi there!
If you need more help you can view your support options (expected response time for a ticket is 24 hours), or contact us on X or Facebook.
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!