![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
源码分析
文章平均质量分 73
BigSweetee
我还能学习更多
展开
-
binservice之binder机制流程分析
binder机制系统中很多机制都涉及到binder机制,所以对binder机制有一个大致的了解是必不可少的。本文从bindService方法出发流程分析为bindService->connection的onServiceConnected触发来了解一下binder机制 private ServiceConnection connection = new ServiceConnection() { @Override public void onServiceCo原创 2021-04-20 16:09:25 · 367 阅读 · 0 评论 -
leakcanary2.6源码分析
本文基于debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.6'版本分析导入后不需要初始化直接使用通过ContentProvider机制自定义了一个AppWatcherInstaller<application> <provider android:name="leakcanary.internal.AppWatcherInstaller$MainProce原创 2021-03-15 14:35:24 · 247 阅读 · 0 评论 -
glide 4.10+源码主流程分析
本文章基于glide4.11.0源码分析主流程主流程代码为 Glide.with(activity).load(url).into(target).with方法 @NonNull public static RequestManager with(@NonNull FragmentActivity activity) { return getRetriever(activity).get(activity); }get方法 @NonNullpublic RequestMana原创 2021-03-08 15:14:39 · 163 阅读 · 0 评论 -
HashMap源码解析
源码第一篇(hashmap)简单理解篇本篇讲解hashmap的put 方法的原理和一些源码的解析下面先简单的介绍一下hashmap (hashmap包位置为import java.util.HashMap)hashmap的数据结构是数组和链表的结合 为什么会是这个结构,后面会讲到hashmap是线程不安全的 非线程安全是指多线程操作同一个对象可能会出现问题 也就是说,我新建一个对象,用100原创 2017-10-16 11:19:58 · 215 阅读 · 0 评论 -
okhttp3源码解析
基本用法介绍okhttp一直是一个应用非常广泛的网络框架。 首先看一下okhttp的基本用法 var client = OkHttpClient() var request = Request.Builder().url(&quot;http://www.baidu.com&quot;).get().build() var call = client.newCa...原创 2018-07-12 10:51:29 · 243 阅读 · 0 评论 -
eventbus流程源码跟踪
eventbus是一个很常见的android库,平时开发用的也比较多但是会用和了解它的原理是不一样的,今天主要通过正常的一条eventbus流程,来分析一下它的内部实现首先还是看一下基本用法在oncrate或者onresume注册 根据需求在不同的地方注册EventBus.getDefault().register(this)对应的在相应的ondestory onstop中取消注册E...原创 2019-09-18 14:22:44 · 250 阅读 · 0 评论