0
DBRoulette.java檢查目錄存在,目錄包含將無法在Dropbox的API工作
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;
}
此代碼不能在DownloadRandomPicture.java
任何人知道如何解決它?
是什麼'dirent'的類型? – 2012-08-13 09:15:48
@Jigar Joshi編輯,對不起 – Sieryuu 2012-08-13 09:21:08