@@ -0,0 +1,672 @@
+package com.matao.common.util;%0A%0Aimport android.content.Context;%0Aimport android.os.Environment;%0A%0Aimport java.io.File;%0A%0A/**%0A * Created by matao on 2016-12-23 00:19%0A */%0A%0Apublic class DiskCacheUtils %7B%0A%0A    public static File getDiskCacheDir(Context context, String uniqueName) %7B%0A        String cachePath;%0A        if (Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState())%0A                %7C%7C !Environment.isExternalStorageRemovable()) %7B%0A            cachePath = context.getExternalCacheDir().getPath();%0A        %7D else %7B%0A            cachePath = context.getCacheDir().getPath();%0A        %7D%0A        return new File(cachePath + File.separator + uniqueName);%0A    %7D%0A%7D%0A

Add DiskCacheUtils