We're making changes to the Community, so you may have received some notifications - thanks for your patience and welcome back. Learn more here.
Forum Discussion
Ahmad R.7
10 years agoNew member | Level 1
How to pass the "request code" when doing authentication
This is for Android: I am moving from Sync API to Core API. Once you do authentication, onResume is called. However, there is no request code to be passed so I can check it in the onResume . How w...
Ahmad R.7
10 years agoNew member | Level 1
Thank you Greg. Let me ask you about this scenario then. Let's say that in my app the user wants to backup a file. So the app initiates authentication, on resume is called and the file gets backed up. Good, now let's say right away the user press home button and come back to the app, the on resume will be called. In that case, won't the authenticationSuccessfull returns true? And if so then the file will get backup again (and the file could've changed meanwhile).
IIn summary, is it guaranteed that the authenticationSuccessfull will return true "only" if the on resume is called as a result Auth flow and will return false even if authentication was just done previously on the same activity?
Thank you again
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,875 PostsLatest Activity: 2 years agoIf 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!