Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
nzmike
8 years agoExplorer | Level 3
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 ...
- 8 years agoJust 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
Greg-DB
Dropbox Community Moderator
8 years agoJust 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
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
nzmike
8 years agoExplorer | Level 3
Hi Greg, sorry it's taken a while to reply, have been away for a few days.
I think the issue was something to do with me having already created the Apps folder well before I started my Android app - rather than using Windows Explorer (which was showing the files in the Apps/<appname> folder when I went to Dropbox.com I could see they had not been synched. When I tried to do that I got a synching error in Explorer and it showed two Apps folders, one with an error next to it. I deleted the one I created manually and moved some test files to the <appname> folder and re-ran my app and now it does return the files in the Apps/<appname> folder.
Many thanks for your help :-)
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!