专注于编程的细节
The most effective way of learning a new program language is through examples: copy and paste a piece of codes, run it to see results, then try to modify and re-run it step-by-step
摘要:
http://www.codeproject.com/Articles/552/Using-Worker-ThreadsIntroductionWorker threads are an elegant solution to a number of problems about concurren... 阅读全文
摘要:
http://www.cnblogs.com/JohnTsai/p/3975022.htmlhttp://www.zhihu.com/question/19801131In myprevious postI showed how to perform asynchronous web API cal... 阅读全文
摘要:
1、给定两个正整数(二进制形式表示)A和B,问把A变为B需要改变多少位(bit)?也就是说,整数A和B的二进制表示中有多少位是不同的?(181)解法一:举例说明,为了减少复杂度,就使用八位二进制吧。设 A = 0010 1011, B = 0110 0101.1. C = A & B = 0010 ... 阅读全文
摘要:
1、然后这里说的是fragment与activityt的交互,一般的做法是在Fragment中定义一个接口。然后activity去实现这个接口。然后framment在onAttach()这中去捕获接口的实现,大概就是这么个过程。原话是:To allow a Fragment to communica... 阅读全文