|
|
7³â Àü |
/**
* ¾Û ij½Ã¸¦ °¡Â÷¾øÀÌ Áö¿î´Ù.
*/
public static void clearApplicationCache(Context context, File file) {
File dir = null;
if (file == null) {
dir = context.getCacheDir();
} else {
dir = file;
}
if (dir == null)
return;
File[] children = dir.listFiles();
try {
for (int i = 0; i < children.length; i++)
if (children[i].isDirectory())
Util.clearApplicationCache(context, children[i]);
else
children[i].delete();
} catch (Exception e) {
}
};
|
|
̵̧ : 338 |
̵̧
¸ñ·Ï
|
|