<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[会一切]]></title><description><![CDATA[never stop learning new things]]></description><link>https://blog.csdn.net/ricefcc</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; ricefcc]]></copyright><item><title><![CDATA[Android异步处理一：使用Thread+Handler实现非UI线程更新UI界面]]></title><link>https://blog.csdn.net/ricefcc/article/details/43707479</link><guid>https://blog.csdn.net/ricefcc/article/details/43707479</guid><author>ricefcc</author><pubDate>Tue, 10 Feb 2015 20:43:49 +0800</pubDate><description><![CDATA[本博文地址：http://blog.csdn.net/mylzc/article/details/6736988 转载请注明出处



Android异步处理系列文章索引


Android异步处理一：使用Thread+Handler实现非UI线程更新UI界面


Android异步处理二：使用AsyncTask异步更新UI界面


Android异步处理三：Handle]]></description><category></category></item><item><title><![CDATA[解决AsyncTask引发的RejectedExecutionException（继承AsynTask）]]></title><link>https://blog.csdn.net/ricefcc/article/details/43707445</link><guid>https://blog.csdn.net/ricefcc/article/details/43707445</guid><author>ricefcc</author><pubDate>Tue, 10 Feb 2015 20:40:46 +0800</pubDate><description><![CDATA[解决AsyncTask引发的RejectedExecutionException




AsyncTask是google为易用和有效的异步操作UI线程的所开发的一个封装类。使用者可以很轻易的使用其进行后台操作，然后将结果传给UI线程，而不需要使用Thread和Handler。
这样好用的一个类，显然可以在ListView异步加载图片时大显身手，本着这样的想法，笔者瞬间就完成了一段这样]]></description><category></category></item><item><title><![CDATA[AsyncTask使用的问题]]></title><link>https://blog.csdn.net/ricefcc/article/details/43707267</link><guid>https://blog.csdn.net/ricefcc/article/details/43707267</guid><author>ricefcc</author><pubDate>Tue, 10 Feb 2015 20:19:54 +0800</pubDate><description><![CDATA[有时候，我们在调用了execute()方法后，AsyncTask并没有马上执行，而是等了很久后才执行，这是为什么呢？
原因在于AsyncTask默认自己维护一个静态的线程池，而该线程池只允许同时执行一个线程，也就是说，不管多少个AsyncTask,只要是调用execute()方法，都是共享这个默认进程池的，你的任务必须在之前的任务执行完以后，才能执行。可以理解为，默认情况下，所有的AsyncTa]]></description><category></category></item><item><title><![CDATA[有了Eclipse为何用Ant]]></title><link>https://blog.csdn.net/ricefcc/article/details/43460691</link><guid>https://blog.csdn.net/ricefcc/article/details/43460691</guid><author>ricefcc</author><pubDate>Tue, 03 Feb 2015 23:14:45 +0800</pubDate><description><![CDATA[总有那么一批人认为IDE是无比强大的，比如Eclipse，或者更强大的MyEclipse（你是不是在用破解版本？）。Eclipse的确非常、非常、非常的优秀，它能帮你自动编译、帮你执行单元测试、帮你重构……我不想黑Eclipse，要黑的话拿Maven作为对比也太愚蠢了，应该用IDEA才对。我想说的是，Eclipse再强大也替代不了Maven这样的自动化构建工具，为什么昵？
几年前当我还没有毕业的]]></description><category></category></item><item><title><![CDATA[Android API Level 与 Platform Version之间的关系]]></title><link>https://blog.csdn.net/ricefcc/article/details/43445285</link><guid>https://blog.csdn.net/ricefcc/article/details/43445285</guid><author>ricefcc</author><pubDate>Tue, 03 Feb 2015 08:30:03 +0800</pubDate><description><![CDATA[Android 5.0                        20
Android 4.4                        19
Android 4.3                         18





Platform Version

API Level

VERSION_CODE

Notes



Android 4.]]></description><category></category></item><item><title><![CDATA[AndroidManifest.xml中的minSdkVersion、targetSdkVersion、maxSdkVersion和project.properties中target API leve]]></title><link>https://blog.csdn.net/ricefcc/article/details/43445255</link><guid>https://blog.csdn.net/ricefcc/article/details/43445255</guid><author>ricefcc</author><pubDate>Tue, 03 Feb 2015 08:13:03 +0800</pubDate><description><![CDATA[AndroidManifest.xml中的minSdkVersion、targetSdkVersion、maxSdkVersion和project.properties中target API level 四个数值区别 

 

新建工程的时候minSdk和target API level 是一致的

（1）minSdkVersion与maxSdkVersion ：在安装程序的时候，如果]]></description><category></category></item><item><title><![CDATA[ArrayList的toArray方法]]></title><link>https://blog.csdn.net/ricefcc/article/details/42974445</link><guid>https://blog.csdn.net/ricefcc/article/details/42974445</guid><author>ricefcc</author><pubDate>Wed, 21 Jan 2015 20:10:25 +0800</pubDate><description><![CDATA[ArrayList提供了一个将List转为数组的一个非常方便的方法toArray。toArray有两个重载的方法：

1.list.toArray();

2.list.toArray(T[]  a);

对于第一个重载方法，是将list直接转为Object[] 数组；

第二种方法是将list转化为你所需要类型的数组，当然我们用的时候会转化为与list内容相同的类型。

 ]]></description><category></category></item><item><title><![CDATA[HashMap原理很简单]]></title><link>https://blog.csdn.net/ricefcc/article/details/42711141</link><guid>https://blog.csdn.net/ricefcc/article/details/42711141</guid><author>ricefcc</author><pubDate>Wed, 14 Jan 2015 16:02:03 +0800</pubDate><description><![CDATA[/** 
    *@author annegu 
    *@date 2009-12-02 
    */ 

Hashmap是一种非常常用的、应用广泛的数据类型，最近研究到相关的内容，就正好复习一下。网上关于hashmap的文章很多，但到底是自己学习的总结，就发出来跟大家一起分享，一起讨论。 

1、hashmap的数据结构 
要知道hashmap是什么，首先要搞清楚它的数据]]></description><category></category></item><item><title><![CDATA[synchronized方法真相]]></title><link>https://blog.csdn.net/ricefcc/article/details/42711047</link><guid>https://blog.csdn.net/ricefcc/article/details/42711047</guid><author>ricefcc</author><pubDate>Wed, 14 Jan 2015 15:57:24 +0800</pubDate><description><![CDATA[因为之前对syncronized方法的错误理解，最近犯了一个很严重的错误，以此文记。

错误理解：synchronized 方法仅对此同步方法加锁，只是这个方法不能被多个线程同步执行。

正确理解：synchronized 方法对整个实例内所有synchronized
 方法加锁，一个实例内所有的synchronized 方法不能被同步执行。

----------


参考：]]></description><category></category></item><item><title><![CDATA[Thread常搞混的几个概念sleep、wait、yield、interrupt]]></title><link>https://blog.csdn.net/ricefcc/article/details/42710831</link><guid>https://blog.csdn.net/ricefcc/article/details/42710831</guid><author>ricefcc</author><pubDate>Wed, 14 Jan 2015 15:42:13 +0800</pubDate><description><![CDATA[sleep：在指定的毫秒数内让当前正在执行的线程休眠（暂停执行），此操作受到系统计时器和调度程序精度和准确性的影响。该线程不丢失任何监视器的所属权。 
通过调用sleep使任务进入休眠状态，在这种情况下，任务在指定的时间内不会运行。
调用sleep的时候锁并没有被释放。
休眠 
Java SE5引入了更加显示的sleep()版本作为TimeUnit类的一部分，这个方法允许你指定sleep(]]></description><category></category></item><item><title><![CDATA[View触摸事件分发流程dispatchTouchEvent、onInterceptTouchEvent、onTouchEvent]]></title><link>https://blog.csdn.net/ricefcc/article/details/42678689</link><guid>https://blog.csdn.net/ricefcc/article/details/42678689</guid><author>ricefcc</author><pubDate>Tue, 13 Jan 2015 16:49:58 +0800</pubDate><description><![CDATA[Android中的事件类型分为按键事件和屏幕触摸事件，Touch事件是屏幕触摸事件的基础事件，有必要对它进行深入的了解。







一个最简单的屏幕触摸动作触发了一系列Touch事件：ACTION_DOWN->ACTION_MOVE->ACTION_MOVE->ACTION_MOVE...->ACTION_MOVE->ACTION_UP

当屏幕中包含一个ViewGroup]]></description><category></category></item><item><title><![CDATA[Java final用法小结]]></title><link>https://blog.csdn.net/ricefcc/article/details/42397683</link><guid>https://blog.csdn.net/ricefcc/article/details/42397683</guid><author>ricefcc</author><pubDate>Sun, 04 Jan 2015 20:03:34 +0800</pubDate><description><![CDATA[final在Java中并不常用，然而它却为我们提供了诸如在C语言中定义常量的功能，不仅如此，final还可以让你控制你的成员、方法或者是一个类是否可被覆写或继承等功能，这些特点使final在Java中拥有了一个不可或缺的地位，也是学习Java时必须要知道和掌握的关键字之一。


final 关键字表示'终态的'，'无法改变的', 它可以修饰非抽象类，非抽象方法及变量 

final类不能]]></description><category></category></item><item><title><![CDATA[GC如何知道对象没被引用（孤岛例子）]]></title><link>https://blog.csdn.net/ricefcc/article/details/42273695</link><guid>https://blog.csdn.net/ricefcc/article/details/42273695</guid><author>ricefcc</author><pubDate>Tue, 30 Dec 2014 21:10:25 +0800</pubDate><description><![CDATA[引用计数方法不好，没有一种虚拟机使用它。

Java 虚拟机启动一个线程从栈和静态储存区开始，遍历所有引用，就可以找到所有还在使用中的对象。至于没有被引用的对象，或者像 3 楼说的那种“孤岛”，不会被遍历到，所以会被回收。

基于这样的理论，有两种实践方法，一种方法暂停当前程序的执行，将所有找到的对象复制到另一块内存区域，没有找到的对象自然就没有复制，这种方法叫“停止-复制”，

另一]]></description><category></category></item><item><title><![CDATA[Android touch事件、click事件、focus、selected的区别]]></title><link>https://blog.csdn.net/ricefcc/article/details/42065407</link><guid>https://blog.csdn.net/ricefcc/article/details/42065407</guid><author>ricefcc</author><pubDate>Sun, 21 Dec 2014 22:05:35 +0800</pubDate><description><![CDATA[View的setFocusable(true)与requestFocus区别：

setFocusable是设置是否允许此控件拥有获得焦点的能力，是属性设置。

requestFocus是让控件得到焦点，是执行动作。

——————————————————————————————————————————————————————

复合Drawable的state_pressed、s]]></description><category></category></item><item><title><![CDATA[Android多点触摸事件捕获]]></title><link>https://blog.csdn.net/ricefcc/article/details/42063463</link><guid>https://blog.csdn.net/ricefcc/article/details/42063463</guid><author>ricefcc</author><pubDate>Sun, 21 Dec 2014 20:25:47 +0800</pubDate><description><![CDATA[1 简介

Android多点触控在本质上需要LCD驱动和程序本身设计上支持，目前市面上HTC、Motorola和Samsung等知名厂商只要使用电容屏触控原理的手机均可以支持多点触控Multitouch技术，对于网页缩放、手势操作上有更好的用户体验。 在Android平台上事件均使用了MotionEvent对象方式处理，比如开始触控时会触发ACTION_DOWN，而移动操作时为 ACTION]]></description><category></category></item><item><title><![CDATA[Android网络缓存]]></title><link>https://blog.csdn.net/ricefcc/article/details/42031789</link><guid>https://blog.csdn.net/ricefcc/article/details/42031789</guid><author>ricefcc</author><pubDate>Fri, 19 Dec 2014 21:08:22 +0800</pubDate><description><![CDATA[Android网络缓存


主要介绍可同步或异步获取数据、可自动根据服务器的返回头判断是否需要缓存、可自动根据请求头信息判断是否读取缓存的网络缓存。
本文分为四部分包括使用示例、功能介绍、原理介绍、疑问解答。

 

适用：网络获取内容不大的应用，尤其是api接口数据，如新浪微博、twitter的timeline、微信公众账号发送的内容等等。

 

示例APK可从这些地址]]></description><category></category></item><item><title><![CDATA[ImageCache图片缓存使用]]></title><link>https://blog.csdn.net/ricefcc/article/details/42031761</link><guid>https://blog.csdn.net/ricefcc/article/details/42031761</guid><author>ricefcc</author><pubDate>Fri, 19 Dec 2014 21:06:27 +0800</pubDate><description><![CDATA[Android ImageCache图片缓存，使用简单，支持预取，支持多种缓存算法，支持不同网络类型，扩展性强


主要介绍一个支持图片自动预取、支持多种缓存算法、支持二级缓存、支持数据保存和恢复的图片缓存的使用、功能及网友反馈的常见问题解答。

 

与Android LruCache相比主要特性：(1). 使用简单  (2). 轻松获取及预取新图片  (3). 包含二级缓存  (]]></description><category></category></item><item><title><![CDATA[Android Touch事件传递机制]]></title><link>https://blog.csdn.net/ricefcc/article/details/42031665</link><guid>https://blog.csdn.net/ricefcc/article/details/42031665</guid><author>ricefcc</author><pubDate>Fri, 19 Dec 2014 20:59:38 +0800</pubDate><description><![CDATA[Android Touch事件传递机制


介绍Android Touch事件的传递机制。

不少朋友私信问到这个问题，那就推荐一篇我看到的对传递机制介绍最清楚的国外文章吧。本文略作翻译。

 

1、基础知识

(1) 所有Touch事件都被封装成了MotionEvent对象，包括Touch的位置、时间、历史记录以及第几个手指(多指触摸)等。

 

(2) 事件类]]></description><category></category></item><item><title><![CDATA[Android公共库（图片缓存、网络缓存、下拉及底部更多ListView公共类）]]></title><link>https://blog.csdn.net/ricefcc/article/details/42031647</link><guid>https://blog.csdn.net/ricefcc/article/details/42031647</guid><author>ricefcc</author><pubDate>Fri, 19 Dec 2014 20:57:43 +0800</pubDate><description><![CDATA[Android公共库——图片缓存 网络缓存 下拉及底部更多ListView 公共类


介绍总结的一些android公共库，包含缓存(图片缓存、预取缓存、网络缓存)、公共View(下拉及底部加载更多ListView、底部加载更多ScrollView、滑动一页Gallery)、及Android常用工具类(网络、下载、shell、文件、json等等)。

 

TrineaAndroid]]></description><category></category></item><item><title><![CDATA[自动滚动轮播循环的ViewPager]]></title><link>https://blog.csdn.net/ricefcc/article/details/42031619</link><guid>https://blog.csdn.net/ricefcc/article/details/42031619</guid><author>ricefcc</author><pubDate>Fri, 19 Dec 2014 20:55:31 +0800</pubDate><description><![CDATA[Android自动滚动轮播循环的ViewPager


主要介绍如何实现ViewPager自动播放，循环滚动的效果及使用。顺便解决ViewPager嵌套(ViewPager
 inside ViewPager)影响触摸滑动及ViewPager滑动速度设置问题。

 

项目已开源Android Auto Scroll ViewPager@Github，欢迎star和fork。
]]></description><category></category></item></channel></rss>