Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
Robert S.138
9 years agoHelpful | Level 7
AccessToken Error recovery in Auth2 (Android)
In examining the Android sample for Core API v2, I was wondering how to properly handle error recovery in the use of AccessToken. In the example, the AccessToken is returned by Auth.getOAuth2Token()...
Robert S.138
9 years agoHelpful | Level 7
Functionally, I now have Core API v2 integrated into my app and working well. I have decided to create a dynamic DbxClientV2, rather than as a static as shown in the official sample code, and it seems to be working well. Does anyone know if this is in accord with best practices? I release the DbxClientV2 after each session of working with Dropbox, which is small part of my app. But it is possible to have several Dropbox sessions during the lifetime of my app.
So the first question remains: what will happen if my accessToken is faulty for some reason, even if it was good at one time? Here is the sequence of API calls that I do with accessToken (download from the root folder):
sDbxClient = new DbxClientV2(requestConfig, accessToken);
ListFolderResult result = sDbxClient.files().listFolder(");
List<Metadata> list = result.getEntries();
I imagine that if accessToken was bad, something would go wrong before this point. So, which call would fail, and how? (What exception, what null return, etc.?)
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!