We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Kapil22
9 years agoExplorer | Level 3
V2 session in Android
How can I store dropbox v2 session in android. I have followed the tutorial from dropbox sample app but its not working for me. I need some exact solution. It was much more easy to create and store session using previous sdk. Not able to find accurate samples or tutorials for new V2 android sdk.
1 Reply
- Greg-DB9 years ago
Dropbox Community Moderator
Are you referring to the Android sample app included with the Dropbox API v2 Java SDK? That is what you should use as a reference when implementing this in your own Android app. What didn't work for you exactly?
This works essentially the same way as the old v1 SDK. That is, your app should send the user through the OAuth app authorization flow, and receives an access token when the user authorizes your app. Your app can store and re-use that access token. You can see how the Android sample app does that here.
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!