cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

Null Entries Variable When Retriving Metadata

New member | Level 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
Highlighted

Re: Null Entries Variable When Retriving Metadata

Dropboxer
Dropboxer

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.

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?