DBRoulette.java
private final String DATA_DIR = "/DataBase/";
Dropbox
DownloadRandomPicture
public DownloadRandomPicture(Context context, DropboxAPI<?> api,
String dropboxPath, ImageView view) {
mPath = dropboxPath;
doInBackground()
Entry dirent = mApi.metadata(mPath, 1000, null, true, null);
if (!dirent.isDir || dirent.contents == null) {
// It's not a directory, or there's nothing in it
mErrorMsg = "File or empty directory";
return false;
}
this code is not working at DownloadRandomPicture.java
anyone know how to fix it?
If we are using
we should
but if we are using
we should use
The difference is at the boolean at the dirent