SharedPreferences.Editor中commit()和applay()的区别
在使用Lint检查代码时,得到提示
Consider using apply() instead; commit writes its data to persistent
storage immediately, whereas apply will handle it in the background
通过阅读文档得知只要区别在于:
commit() API Level 1。appl
原创
2017-03-02 11:15:37 ·
1382 阅读 ·
0 评论