Skip to content

Commit 7a3ccc6

Browse files
committed
增加清楚数据的区别。
1 parent e336f68 commit 7a3ccc6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Android基础/数据存储.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,10 @@
314314
e.printStackTrace();
315315
}
316316
```
317+
318+
7. 清除缓存&清除数据
319+
清除数据会清除`/data/data/`包名中的所有文件
320+
清楚缓存会清楚`getCacheDir()`目录下的内容,也就是`/data/data/<当前应用程序包名>/cache/`
317321

318322
---
319323

0 commit comments

Comments
 (0)