We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Siddharth J.
11 years agoNew member | Level 1
Dropbox com.android.packageinstaller.InstallAppProgress has leaked IntentReceiver
Unable to upload a file.
I am trying to upload a file to dropbox. I have configured manifest file, and written the below code. Please help me understand what I am missing here.
Debug Statements ...
Greg-DB
Dropbox Community Moderator
11 years agoMy apologies for any offense or miscommunication here. Like you, we want to make sure the best content and answers are available to other developers. We agree that having the user re-authorize the app is a bad experience but it seems the confusion here is around the notion that re-authing the user (via startOAuth2Authentication) is necessary, when in fact it isn't. As Steve was trying to point out with his comment, you only need to have the user authorize the app once, after which you can store and re-use the resulting access token. This is covered in the tutorial here:
https://www.dropbox.com/developers/core/start/android#authenticating
Only if the user explicitly unlinks the app do you need to prompt them to re-authorize. If they do unlink the app, API calls with the old access token will fail with DropboxUnlinkedException, documented here:
Likewise, this can occur if you restart a previously authorized app but don't load up the previously acquired access token. You can create a session using a previously stored access token without having the user re-authorize the app using this constructor:
I hope this helps!
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!