MSDK下载原图失败
0
发表于2020-12-24
手机看帖
5
1523
环境:MSDK+UX 均是4.14-triall设置下载模式到刷新文件列表获取文件全都正常,唯独到下载时失败,提示The execution could not be executed。试了一下MSDK Demo,也是同样的问题,有人遇到过吗?是什么原因?
File destDir = new File(Environment.getExternalStorageDirectory().getAbsolutePath() + "/Dji_Sdk_Test/");
thisFile.fetchFileData(destDir, null, new DownloadListener<String>() {
@Override
public void onStart() {
}
@Override
public void onRateUpdate(long l, long l1, long l2) {
}
@Override
public void onRealtimeDataUpdate(byte[] bytes, long l, boolean b) {
}
@Override
public void onProgress(long l, long l1) {
}
@Override
public void onSuccess(String s) {
ToastUtils.setResultToToast("文件已储存,地址:" + s);
camera.setMode(SettingsDefinitions.CameraMode.SHOOT_PHOTO, new CommonCallbacks.CompletionCallback() {
@Override
public void onResult(DJIError djiError) {
}
});
}
@Override
public void onFailure(DJIError djiError) {
ToastUtils.setResultToToast("文件储存失败:"+djiError.getDeion());
camera.setMode(SettingsDefinitions.CameraMode.SHOOT_PHOTO, new CommonCallbacks.CompletionCallback() {
@Override
public void onResult(DJIError djiError) {
}
});
}
}); |
|
|
|