cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
What’s new: end-to-end encryption, Replay and Dash updates. Find out more about these updates, new features and more here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Null Entries Variable When Retriving Metadata

Null Entries Variable When Retriving Metadata

Tommaso M.1
New member | Level 1

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 1

Steve M.
Dropbox Staff

Assumptions I'm making... (please correct me if these are wrong):

  1. This is Java code running on Android. (Guessing based on syntax and "Toast.makeText".)
  2. 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.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Steve M. Dropbox Staff
What do Dropbox user levels mean?