![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
android 源码
文章平均质量分 53
DeckeDeng
Nothing……
展开
-
服务源码
服务流程:ContextImpl@Overridepublic ComponentName startService(Intent service) { warnIfCallingFromSystemProcess(); return startServiceCommon(service, mUser);}warnIfCallingFromSystemProces...原创 2017-03-28 09:40:21 · 933 阅读 · 0 评论 -
IntentService原理 面试知道这些够了
intentService是什么?IntentService继承自service,但是优先级高于Service。内部是封装handlerThread和handler的。IntentService是继承并处理异步请求的一个类,在IntentService内有一个工作线程来处理耗时操作,启动IntentService的方式和启动传统的Service一样,并且,当任务执行完后,IntentSer...原创 2018-08-09 09:50:16 · 1407 阅读 · 0 评论 -
Volley原理超级简单的
最近有点对源码上瘾。。。有点时间,都归纳一些,总结下Volley使用方法,不写了,百度一堆。下包,依赖,使用简单代码: public void getVolley(View view) { //第一步 RequestQueue requestQueue = Volley.newRequestQueue(this); //第二步 ...原创 2018-08-15 17:26:45 · 324 阅读 · 0 评论 -
Handler原理 最快学会看源码
为什么像写Handler,基本网上已经一大堆了,一个是自己归纳一下,加深点记忆,一个是都工作这么久了,好像没有自己好好看看源码总结下,感觉怪怪的。首先,看看Handler默认构造函数,在当前线程中,通过looper关联当前handler。/** * Default constructor associates this handler with the {@link ...原创 2018-08-08 14:01:38 · 168 阅读 · 0 评论