Your workflow is unique šØāš» - tell us how you use Dropbox here.
Forum Discussion
Tommaso M.1
10 years agoNew member | Level 1
Null Entries Variable When Retriving Metadata
public void onFolderShow(View v) {
try {
Entry entries = mDBApi.metadata("/", 100, null, true, null);
} catch (DropboxException e) {
(Toast.makeText(this, "Exception: "+e.getLocalizedMessage(), Toast.LENGTH_LONG)).show();
}
}
I can't understand why the "entries" variable keeps returning "null". The desired result is showing the list of the files contained inside my root folder. Any thoughts?
1 Reply
Replies have been turned off for this discussion
- Steve M.10 years ago
Dropbox Staff
Assumptions I'm making... (please correct me if these are wrong):
- This is Java code running on Android. (Guessing based on syntax and "Toast.makeText".)
- You're using the official Dropbox Android SDK, probably version 1.6.3.
Is an exception being caught? I don't see anywhere in the code that a null would be returned unless an exception occurs.
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!