@@ -445,6 +445,7 @@ public class MainActivity extends BaseActivity {
fixedThreadPool.execute(new Runnable() {
@Override
public void run() {
+ Log.i("--------->", "-------->uploadPicture" + file.getAbsolutePath());
ApiHelper.uploadPicture(MainActivity.this, file, path, name);
}
});
@@ -676,7 +676,7 @@ public class ApiHelper {
public void onSuccess(Response<BaseResponse<Void>> response) {
Log.e("--------->","--------->成功");
-
+ Log.i("--------->", "-------->uploadPicture onSuccess " + file.getAbsolutePath());
FileHelper.deleteImageFile(file.getAbsolutePath());
@@ -1,11 +1,14 @@
package com.naz.sdkdemo.utils;
+import android.util.Log;
+
import java.io.File;
public class FileHelper {
public static boolean deleteImageFile(String imagePath) {
File file = new File(imagePath);
+ Log.i("--------->", "-------->deleteImageFile " + file.getAbsolutePath());
// 检查文件是否存在和是否是文件
if (file.exists() && file.isFile()) {
return file.delete();