Forum Discussion

Gustavo P.2's avatar
Gustavo P.2
New member | Level 1
10 years ago

chooser android not working

Hello,

I am trying to use Chooser in my Android App but when the user choose the file, Dropbox app show the error message: "Dropbox error. Try again later" or "Sorry, an error occurred. Please try again later."

The same occours on ChooserExample.

Is it a Dropbox app version (I am on 6.2.4) or my API Key is invalid or another problem?

PS.: When I use the API Key to send a file using HTTP API, works.

Thanks,

Gustavo

4 Replies

Replies have been turned off for this discussion
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    10 years ago

    This can occur if your app key isn't entered correctly. Can you share your code?

    Likewise, the example app doesn't come with an app key set and requires you to enter it as the APP_KEY variable in MainActivity.java. Did you do that and can you check you copied the key in correctly?

  • Gustavo P.2's avatar
    Gustavo P.2
    New member | Level 1
    10 years ago

    Gregory, thank you for your reply.

    Yes, I changed the APP_KEY on my Android APP and on example app and I made a double check on token, it's correct.

    My code is exactly equal the example app.

    I created my token in an "App Folder" type, but the error happens in App Folder too.

    static final String APP_KEY = "qE7z4V266tsAAAAAAAAH0ftgo6....._SikuUA8EfoFTE-Y_B7j.....";
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    10 years ago

    Thanks for the sample, Gustavo. The string you've entered as your Dropbox API app key is actually an Dropbox API OAuth 2 access token. These are two different things, and the latter is only used for the Dropbox API, not the Dropbox Chooser. 

    Your app key is a much shorter string, and you can get it from your app's page on the App Console:

    https://www.dropbox.com/developers/apps

  • Gustavo P.2's avatar
    Gustavo P.2
    New member | Level 1
    10 years ago

    Thank again, Gregory.

    Are you right, my mistake. I got the correct App Key and it works!

    Thank you,

    Gustavo

About Dropbox API Support & Feedback

Node avatar for 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!