<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[Small_Lee的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/Small_Lee</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; Small_Lee]]></copyright><item><title><![CDATA[git分支名称后面多出REBASE解决]]></title><link>https://blog.csdn.net/Small_Lee/article/details/82150794</link><guid>https://blog.csdn.net/Small_Lee/article/details/82150794</guid><author>Small_Lee</author><pubDate>Tue, 28 Aug 2018 16:54:45 +0800</pubDate><description><![CDATA[前言

git分支名后面出来REBASE字样，最后找到问题

]]></description><category></category></item><item><title><![CDATA[Android热修复手动实现]]></title><link>https://blog.csdn.net/Small_Lee/article/details/80770450</link><guid>https://blog.csdn.net/Small_Lee/article/details/80770450</guid><author>Small_Lee</author><pubDate>Fri, 22 Jun 2018 11:04:32 +0800</pubDate><description><![CDATA[前言热修复，简单的说就是在不重新下载安装app的情况下，自动修复现有app的问题，今天来做一个简单的实现。效果图点击TEST我们执行下面的方法 public void test(View view) {
        TestCaculate testCaculate = new TestCaculate();
        testCaculate.caculate(this);
    }...]]></description><category></category></item><item><title><![CDATA[如何通过adb命令查看data目录下的文件]]></title><link>https://blog.csdn.net/Small_Lee/article/details/80687883</link><guid>https://blog.csdn.net/Small_Lee/article/details/80687883</guid><author>Small_Lee</author><pubDate>Thu, 14 Jun 2018 09:37:09 +0800</pubDate><description><![CDATA[前言最近在做ANR的检测的时候，需要查看产生的log信息，我们都知道产生的文件再data/anr/trace.txt里，但是如何通过命令来查看呢？今天记录一下步骤。步骤1.手机需要先root，我的手机是魅蓝note52.root成功以后执行adb shell,然后通过su命令获取权限，如果看到$符号变为#的话，说明我们就有权限查看目录中的文件了3.ls -al列出所有的目录，然后我们依次进入到da...]]></description><category></category></item><item><title><![CDATA[手写网络访问框架]]></title><link>https://blog.csdn.net/Small_Lee/article/details/80390725</link><guid>https://blog.csdn.net/Small_Lee/article/details/80390725</guid><author>Small_Lee</author><pubDate>Mon, 21 May 2018 19:01:58 +0800</pubDate><description><![CDATA[前言继上篇手写ButterKnife之后，我们进来学习一下如何手写一个网络访问框架，首先给出网络框架的流程图，点此查看源码]]></description><category></category></item><item><title><![CDATA[App优化总结]]></title><link>https://blog.csdn.net/Small_Lee/article/details/80321059</link><guid>https://blog.csdn.net/Small_Lee/article/details/80321059</guid><author>Small_Lee</author><pubDate>Tue, 15 May 2018 16:04:36 +0800</pubDate><description><![CDATA[启动加速方向利用提前展示出来的Window，快速展示出来一个界面，给用户快速反馈的体验；避免在启动时做密集沉重的初始化（Heavy app initialization）；定位问题：避免I/O操作、反序列化、网络操作、布局嵌套等。方向一为启动的Activity设置一个主题，指定android:windowBackground属性&amp;lt;style name=&quot;Launcher&quot;&amp;gt;
     ...]]></description><category></category></item><item><title><![CDATA[Android布局优化ViewStub源码分析]]></title><link>https://blog.csdn.net/Small_Lee/article/details/80320390</link><guid>https://blog.csdn.net/Small_Lee/article/details/80320390</guid><author>Small_Lee</author><pubDate>Tue, 15 May 2018 11:39:05 +0800</pubDate><description><![CDATA[前言

关于布局优化的内容之前总结过一篇，可以移步Android布局优化总结，今天我们从源码的角度来分析一下ViewStub是如何实现的。

源码分析




@RemoteView
public final class ViewStub extends View {
    private int mInflatedId; // 被填充View的id
    private int mLayo...]]></description><category></category></item><item><title><![CDATA[手写ButterKnife]]></title><link>https://blog.csdn.net/Small_Lee/article/details/80264415</link><guid>https://blog.csdn.net/Small_Lee/article/details/80264415</guid><author>Small_Lee</author><pubDate>Sun, 13 May 2018 15:29:41 +0800</pubDate><description><![CDATA[前言

ButterKnife是一个依赖注入框架，8.0之前是通过反射的方式实现，具体实现可以参考这篇文章自定义注解，今天我们来看下8.0之后的编译时注解实现方式，编译时注解相比运行时注解效率高，是通过在编译时生成代码的方式来绑定控件。

结构



app:我们的Android项目

butterknife-annotation:java library,定义注解

butterknife...]]></description><category></category></item><item><title><![CDATA[并发编程总结]]></title><link>https://blog.csdn.net/Small_Lee/article/details/80198412</link><guid>https://blog.csdn.net/Small_Lee/article/details/80198412</guid><author>Small_Lee</author><pubDate>Fri, 04 May 2018 17:43:44 +0800</pubDate><description><![CDATA[这篇文章总结并发编程相关内容重入锁深入重入锁ReentrantLock死锁死锁得条件和避免多线程断点续传多线程断点续传]]></description><category></category></item><item><title><![CDATA[数据结构]]></title><link>https://blog.csdn.net/Small_Lee/article/details/80197300</link><guid>https://blog.csdn.net/Small_Lee/article/details/80197300</guid><author>Small_Lee</author><pubDate>Fri, 04 May 2018 16:43:31 +0800</pubDate><description><![CDATA[这篇文章总结数据结构]]></description><category></category></item><item><title><![CDATA[Android面试题总结]]></title><link>https://blog.csdn.net/Small_Lee/article/details/80177532</link><guid>https://blog.csdn.net/Small_Lee/article/details/80177532</guid><author>Small_Lee</author><pubDate>Thu, 03 May 2018 17:52:41 +0800</pubDate><description><![CDATA[1.String转化为Integer的Integer.valueOf方法public static Integer valueOf(String s) throws NumberFormatException {
        return Integer.valueOf(parseInt(s, 10));
    }先通过parseInt方法把String转化为int类型，有个格式检查publ...]]></description><category></category></item><item><title><![CDATA[内存泄漏总结]]></title><link>https://blog.csdn.net/Small_Lee/article/details/79955682</link><guid>https://blog.csdn.net/Small_Lee/article/details/79955682</guid><author>Small_Lee</author><pubDate>Mon, 16 Apr 2018 09:04:37 +0800</pubDate><description><![CDATA[垃圾回收垃圾回收机制可以作为Gc Root引用的点的是JavaStack中引用的对象方法区中静态引用指向的对象方法区中常量引用指向的对象Native方法中JNI引用的对象确定是否存在内存泄漏查看Android Profile ,点击Dump Java Heap,然后我们就可以在下面的区域看到每个对象所占有的内存情况如果想对结果进行过滤，可以点击右侧的Filter，例如我们想查看我们应用的内存情况，...]]></description><category></category></item><item><title><![CDATA[百度地图使用总结]]></title><link>https://blog.csdn.net/Small_Lee/article/details/79824523</link><guid>https://blog.csdn.net/Small_Lee/article/details/79824523</guid><author>Small_Lee</author><pubDate>Thu, 05 Apr 2018 10:34:35 +0800</pubDate><description><![CDATA[前言这篇文章总结一下项目开发过程中，百度地图使用到的一些东西1.封装定位管理类/**
 * 定位管理
 */

public class LocationManager {
    private static LocationManager mInstance;
    private LocationClient mLocationClient;
    private LocationCli...]]></description><category></category></item><item><title><![CDATA[项目学习资料]]></title><link>https://blog.csdn.net/Small_Lee/article/details/79640323</link><guid>https://blog.csdn.net/Small_Lee/article/details/79640323</guid><author>Small_Lee</author><pubDate>Wed, 21 Mar 2018 15:03:41 +0800</pubDate><description><![CDATA[概述从今天开始总结一下，项目中学到的一些东西，方便学习。1.避免从从安装页面打开app后退出后台，再点击桌面icon，多出一个任务栈在启动页的onCreate方法中做判断  @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
  ...]]></description><category></category></item><item><title><![CDATA[Android实现WebView和Js交互]]></title><link>https://blog.csdn.net/Small_Lee/article/details/79558635</link><guid>https://blog.csdn.net/Small_Lee/article/details/79558635</guid><author>Small_Lee</author><pubDate>Wed, 14 Mar 2018 19:06:23 +0800</pubDate><description><![CDATA[概述今天来看看WebView和Js的交互功能如何实现效果图代码首先我们需要准备一个html文件，放在assets目录中，方便我们从代码中加载，html的代码如下&amp;lt;html&amp;gt;
    &amp;lt;head&amp;gt;
        &amp;lt;title&amp;gt;WebView和Js交互&amp;lt;/title&amp;gt;
        &amp;lt;script type=&quot;text/javascript&quot;&amp;...]]></description><category></category></item><item><title><![CDATA[Android面试题]]></title><link>https://blog.csdn.net/Small_Lee/article/details/79483906</link><guid>https://blog.csdn.net/Small_Lee/article/details/79483906</guid><author>Small_Lee</author><pubDate>Thu, 08 Mar 2018 15:00:21 +0800</pubDate><description><![CDATA[1.Activity启动模式如何查看当前的Activity栈以及Activity栈中的Activity信息adb shell dumpsys activity activities结果如下一般会有两个Stack,Stack#0代表Launcher所在的Activity另外的一个Stack就是我们自己的ActivityTask代表一个任务栈,如果有多个任务栈，会有多个TaskHist代表任务栈中某个...]]></description><category></category></item><item><title><![CDATA[View的post方法执行的时机]]></title><link>https://blog.csdn.net/Small_Lee/article/details/79424093</link><guid>https://blog.csdn.net/Small_Lee/article/details/79424093</guid><author>Small_Lee</author><pubDate>Fri, 02 Mar 2018 17:24:37 +0800</pubDate><description><![CDATA[概述View的post方法我一般用来在Activity的onCreate方法中获取View的尺寸，那么为什么在这里面能够正常获取到，它的执行时机又是什么时候，今天来分析一下。首先把自定义View添加到布局文件中&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;
&amp;lt;LinearLayout xmlns:android=&quot;http://schemas.and...]]></description><category></category></item><item><title><![CDATA[如何判断ListView的某个条目是否滑出了屏幕]]></title><link>https://blog.csdn.net/Small_Lee/article/details/79410718</link><guid>https://blog.csdn.net/Small_Lee/article/details/79410718</guid><author>Small_Lee</author><pubDate>Thu, 01 Mar 2018 15:10:41 +0800</pubDate><description><![CDATA[public class MainActivity extends AppCompatActivity {
    private List&amp;lt;String&amp;gt; data = new ArrayList&amp;lt;&amp;gt;();
    private ListView listView;
    private int mPosition;

    @Override
    protec...]]></description><category></category></item><item><title><![CDATA[java.util.concurrent.RejectedExecutionException异常发生的时机]]></title><link>https://blog.csdn.net/Small_Lee/article/details/79403877</link><guid>https://blog.csdn.net/Small_Lee/article/details/79403877</guid><author>Small_Lee</author><pubDate>Wed, 28 Feb 2018 18:06:52 +0800</pubDate><description><![CDATA[概述在线程池的使用过程中，我们有时候会遇到下面的异常那么什么时候会发生这个异常呢1.线程池关闭以后，再次提交任务2.提交线程的数量大于最大线程数+任务队列中排队的个数接下来我们模拟一下情况一        ExecutorService service = Executors.newCachedThreadPool();
       //执行下面的会发生RejectedExecutionExce...]]></description><category></category></item><item><title><![CDATA[实现字符串反转]]></title><link>https://blog.csdn.net/Small_Lee/article/details/79403825</link><guid>https://blog.csdn.net/Small_Lee/article/details/79403825</guid><author>Small_Lee</author><pubDate>Wed, 28 Feb 2018 17:58:14 +0800</pubDate><description><![CDATA[今天来看看如何实现字符串反转，比如输入Game is Over,输出Over is Gamepublic class Question {
    public static void main(String[] args) {
        String str = &quot;Game is over adfd aaaa cccc&quot;;
        System.out.println(&quot;=====...]]></description><category></category></item><item><title><![CDATA[Android开发艺术探索读书笔记(第12章 Bitmap的加载和Cache)]]></title><link>https://blog.csdn.net/Small_Lee/article/details/79374225</link><guid>https://blog.csdn.net/Small_Lee/article/details/79374225</guid><author>Small_Lee</author><pubDate>Mon, 26 Feb 2018 13:26:08 +0800</pubDate><description><![CDATA[BitmapBitmap占用的内存大小可以通过下面的API获取 Bitmap bitmap = BitmapFactory.decodeResource(getResources(),R.mipmap.ic_launcher);
        int byteCount = bitmap.getByteCount();
        int allocationByteCount = bitm...]]></description><category></category></item></channel></rss>