Skip to content

Commit

Permalink
Merge pull request #14 from tanglie1993/patch-2
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
jiang111 authored Mar 23, 2018
2 parents d48c3f3 + 2126e83 commit 362b5af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ LongSparseArray<V> in place of HashMap<Long,V>
2.内存泄露可以简单理解成:生命周期长的对象不正确持有了持有了生命周期短的对象,导致生命周期短的对象无法回收。
3.比如Activity实例被Application对象持有,Activity实例被静态变量持有。

* 在assert文件夹下存放单个文件的大小不能超过1M,如果读取超过1M的文件会报 "Data exceeds UNCOMPRESS_DATA_MAX (1314625 vs 1048576)" 的IOException。如果一定要存储,可以分割文件,再去合并文件
* 在assets文件夹下存放单个文件的大小不能超过1M,如果读取超过1M的文件会报 "Data exceeds UNCOMPRESS_DATA_MAX (1314625 vs 1048576)" 的IOException。如果一定要存储,可以分割文件,再去合并文件

* 在Android library中不能使用switch-case语句访问资源ID,因为case分支后面跟的参数必须是常数,而library中的每一个资源ID都没有被声明为final。

Expand Down

0 comments on commit 362b5af

Please sign in to comment.