Forum Discussion

Kapil22's avatar
Kapil22
Explorer | Level 3
8 years ago

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.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    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

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,941 PostsLatest Activity: 5 days ago
351 Following

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 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!