You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
MarioEM
8 years agoHelpful | Level 6
simple Android example for APIv2 required
I have implemented an Android code for Downloading / Uploading files to Dropbox App folder based on the old, simple DBRoulette example, which works perfectly well under Dropbox APIv1. I have spen...
- 8 years ago
Hello Greg,
That was a good suggestion with the link that included the appropriate tip!
I already had the correct Write and Read permissions in the AndroidManifest, but I forgot about the new Android rule introduced since version 23 that requires app users to manually accept the external write storage permission.
It is all working well now, both file Upload and Download.
Thanks for your help.
I had to modify the example Download code to obtain the required metadata for the specific Dropbox file:
protected FileMetadata doInBackground(String... params) { String fileName = params[0]; try { FileMetadata metadata = (FileMetadata) mDbxClient.files().getMetadata("/" + fileName);
Please comment if the above code is the correct way to do it.
Greg-DB
Dropbox Staff
The "EACCES Permission denied" error appears to be an Android error about a lack of permission to read/write the local data. That's not about Dropbox itself exactly, but it looks like you need to make sure you have write permissions, e.g., as covered here:
https://stackoverflow.com/questions/8854359/exception-open-failed-eacces-permission-denied-on-android
Also, the Android sample app only supports 19+, so you may need to change some of the for 14+. What exactly isn't working for you? That's again more about Android itself so I may not be able to offer much insight there unfortunately.
https://stackoverflow.com/questions/8854359/exception-open-failed-eacces-permission-denied-on-android
Also, the Android sample app only supports 19+, so you may need to change some of the for 14+. What exactly isn't working for you? That's again more about Android itself so I may not be able to offer much insight there unfortunately.
MarioEM
8 years agoHelpful | Level 6
Hello Greg,
That was a good suggestion with the link that included the appropriate tip!
I already had the correct Write and Read permissions in the AndroidManifest, but I forgot about the new Android rule introduced since version 23 that requires app users to manually accept the external write storage permission.
It is all working well now, both file Upload and Download.
Thanks for your help.
I had to modify the example Download code to obtain the required metadata for the specific Dropbox file:
protected FileMetadata doInBackground(String... params) { String fileName = params[0]; try { FileMetadata metadata = (FileMetadata) mDbxClient.files().getMetadata("/" + fileName);
Please comment if the above code is the correct way to do it.
- Greg-DB8 years agoDropbox StaffThanks, I'm glad to hear you were able to get that working. Yes, that code looks fine.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,912 PostsLatest Activity: 3 minutes 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!