摘要: 转载自:http://blog.csdn.net/aaa2832/article/details/194196791内存泄漏的排查方法Dalvik Debug Monitor Server (DDMS)是ADT插件的一部分,其中有两项功能可用于内存检查:·heap查看堆的分配情况·allocatio... 阅读全文
posted @ 2014-09-03 19:38 demoblog 阅读(34777) 评论(1) 推荐(2) 编辑
摘要: ImageView默认是不进行图片资源的回收的,需要我们自己在activity或者fragment中进行回收:public static void releaseImageViewResouce(ImageView imageView) { if (imageView == null)... 阅读全文
posted @ 2014-09-03 19:17 demoblog 阅读(15009) 评论(1) 推荐(0) 编辑
摘要: 用法一:常量在JDK1.5 之前,我们定义常量都是: public static fianl.... 。现在好了,有了枚举,可以把相关的常量分组到一个枚举类型里,而且枚举提供了比常量更多的方法。public enum Color { RED, GREEN, BLANK, YELLOW } 用... 阅读全文
posted @ 2014-09-03 10:10 demoblog 阅读(397) 评论(0) 推荐(0) 编辑