We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

nzmike's avatar
nzmike
Explorer | Level 3
7 years ago

Android API - listfolder returns nothing

I have to admit here that I'm both new to Android and new to the DropBox API (but not new to development) so maybe I'm doing something wrong but I cannot get listFolder to return any files no matter ...
  • Greg-DB's avatar
    Greg-DB
    7 years ago
    Just registering an app (i.e., creating it on the App Console), does not automatically create the "app folder" in your account. The app folder is only created in the account once the app is "linked" to the account (i.e., when the user goes through the OAuth app authorization flow to authorize the app to connect to their account, or, for the account that owns the app, when you click the "Generate" button on the app's page on the App Console to get an access token for your app-account pair).

    You don't need to delete or recreate any app or folder, nor do you need to make an API call to determine the path. (Apps with the app folder permission don't need to know the full path of the app folder. All paths in API calls made by apps with the app folder permission are automatically used relative to the app folder.)

    I recommend going to https://www.dropbox.com/ to browse your account. Assuming your account is set to English, the app folder(s) will be inside a folder named "Apps".

    There's an example Android app here:

    https://github.com/dropbox/dropbox-sdk-java/tree/master/examples/android

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,877 PostsLatest Activity: 12 months ago
326 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!