摘要: http://blog.csdn.net/bboyfeiyu/article/details/43450553 阅读全文
posted @ 2015-05-06 14:54 CoolRandy 阅读(146) 评论(0) 推荐(0) 编辑
摘要: http://www.codeproject.com/Articles/552/Using-Worker-ThreadsIntroductionWorker threads are an elegant solution to a number of problems about concurren... 阅读全文
posted @ 2015-04-30 16:13 CoolRandy 阅读(448) 评论(0) 推荐(0) 编辑
摘要: http://arnab.ch/blog/2013/08/asynchronous-http-requests-in-android-using-volley/http://blog.csdn.net/ttdevs/article/details/19200305https://developer.... 阅读全文
posted @ 2015-04-30 16:12 CoolRandy 阅读(153) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/lmj623565791/article/details/42056859http://blog.csdn.net/lmj623565791/article/details/38067475http://blog.csdn.net/guolin_blog/a... 阅读全文
posted @ 2015-04-27 17:15 CoolRandy 阅读(117) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/JohnTsai/p/3975022.htmlhttp://www.zhihu.com/question/19801131In myprevious postI showed how to perform asynchronous web API cal... 阅读全文
posted @ 2015-04-24 11:57 CoolRandy 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 1、给定两个正整数(二进制形式表示)A和B,问把A变为B需要改变多少位(bit)?也就是说,整数A和B的二进制表示中有多少位是不同的?(181)解法一:举例说明,为了减少复杂度,就使用八位二进制吧。设 A = 0010 1011, B = 0110 0101.1. C = A & B = 0010 ... 阅读全文
posted @ 2015-04-15 15:26 CoolRandy 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 1、广播接收器中启动Activity,需要在intent中添加FLAG_ACTIVITY_NEW_TASK/** * Demo描述: * 在BroadcastReceiver中启动Activity的问题 * * 如果在BroadcastReceiver的onReceive()方法中如下启动一个Ac... 阅读全文
posted @ 2015-04-02 22:37 CoolRandy 阅读(361) 评论(0) 推荐(0) 编辑
摘要: 采用PagerAdapter中的FragmentPagerAdapter来实现页面切换,适用于a handful of typically more static fragments to be paged through1.Layout ViewPager ... 阅读全文
posted @ 2015-03-15 20:05 CoolRandy 阅读(390) 评论(0) 推荐(0) 编辑
摘要: 1、然后这里说的是fragment与activityt的交互,一般的做法是在Fragment中定义一个接口。然后activity去实现这个接口。然后framment在onAttach()这中去捕获接口的实现,大概就是这么个过程。原话是:To allow a Fragment to communica... 阅读全文
posted @ 2015-03-11 15:10 CoolRandy 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 部分内容引用http://blog.csdn.net/v_july_v/article/details/70418271、暴力匹配算法假设现在我们面临这样一个问题:有一个文本串S,和一个模式串P,现在要查找P在S中的位置,怎么查找呢? 如果用暴力匹配的思路,并假设现在文本串S匹配到 i 位置,模式... 阅读全文
posted @ 2015-03-10 10:30 CoolRandy 阅读(172) 评论(0) 推荐(0) 编辑