if (Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState())
|| !Environment.isExternalStorageRemovable()) {
if (context.getExternalCacheDir() != null) {
return context.getExternalCacheDir().getPath();
} else {
return context.getCacheDir().getPath();
}
} else {
return context.getCacheDir().getPath();
}
网友评论