<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[Android罗先生的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/for_My_Future</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; for_My_Future]]></copyright><item><title><![CDATA[下载并打开Github源码教程]]></title><link>https://blog.youkuaiyun.com/for_My_Future/article/details/106516142</link><guid>https://blog.youkuaiyun.com/for_My_Future/article/details/106516142</guid><author>for_My_Future</author><pubDate>Wed, 03 Jun 2020 08:23:44 +0800</pubDate><description><![CDATA[文章目录下载并打开GitHub源码教程1. 打开项目并Star2. 复制项目链接3. 打开AndroidStudio并输入项目链接4. 确认项目开始下载5. 项目下载完成之后打开项目6. 等待AndroidStudio下载依赖后运行项目注意事项
下载并打开GitHub源码教程
1. 打开项目并Star


根据链接打开项目（以天气预报项目为例：https://github.com/LuoPeiQin/DongWeather）
打开项目后根据下图点击Star（防止后续找不到该项目）



2. 复制项目链接
]]></description><category></category></item><item><title><![CDATA[推荐一个很好用的蓝牙开源库]]></title><link>https://blog.youkuaiyun.com/for_My_Future/article/details/106325300</link><guid>https://blog.youkuaiyun.com/for_My_Future/article/details/106325300</guid><author>for_My_Future</author><pubDate>Mon, 25 May 2020 08:08:42 +0800</pubDate><description><![CDATA[一个很好用的蓝牙开源库Bluetooth该库的特点库地址蓝牙搜索自定义View自定义View包含的内容蓝牙基本操作相关接口说明获取单例对象注册蓝牙状态监听注册蓝牙连接状态变化监听切换蓝牙类型搜索蓝牙停止搜索蓝牙连接蓝牙与断开蓝牙连接低功耗蓝牙时开启高速模式取消注册监听回调蓝牙收发数据重点说明方式一：继承蓝牙内置协议内置协议简要说明设置蓝牙传输协议创建异步发送数据任务创建同步发送数据任务方式二：原始数据收发设置原始数据收发监听发送数据
Bluetooth
该库的特点

内部集成了多种蓝牙芯片的操作，能兼容几.]]></description><category></category></item><item><title><![CDATA[为什么匿名内部类只能访问其所在方法中的final类型的局部变量？]]></title><link>https://blog.youkuaiyun.com/for_My_Future/article/details/105762607</link><guid>https://blog.youkuaiyun.com/for_My_Future/article/details/105762607</guid><author>for_My_Future</author><pubDate>Sun, 26 Apr 2020 10:06:02 +0800</pubDate><description><![CDATA[匿名内部类不能访问外部类方法中的局部变量，除非变量被声明为final类型

这里所说的“匿名内部类”主要是指在其外部类的成员方法内定义，同时完成实例化的类，若其访问该成员方法中的局部变量，局部变量必须要被final修饰。
原因是编译程序实现上的困难：内部类对象的生命周期会超过局部变量的生命周期。局部变量的生命周期：当该方法被调用时，该方法中的局部变量在栈中被创建，当方法调用结束时，退栈，这些局部变...]]></description><category></category></item><item><title><![CDATA[IntentService源码解析]]></title><link>https://blog.youkuaiyun.com/for_My_Future/article/details/95510864</link><guid>https://blog.youkuaiyun.com/for_My_Future/article/details/95510864</guid><author>for_My_Future</author><pubDate>Thu, 11 Jul 2019 20:30:34 +0800</pubDate><description><![CDATA[IntentService是什么？

IntentService是一个用来在子线程中执行任务的服务。

为什么这么说呢？我们一起来看看IntentService的源码
IntentService的源码
public abstract class IntentService extends Service {
    private volatile Looper mServiceLooper;
 ...]]></description><category></category></item><item><title><![CDATA[HandlerThread源码解析]]></title><link>https://blog.youkuaiyun.com/for_My_Future/article/details/95508966</link><guid>https://blog.youkuaiyun.com/for_My_Future/article/details/95508966</guid><author>for_My_Future</author><pubDate>Thu, 11 Jul 2019 19:29:29 +0800</pubDate><description><![CDATA[HandlerThread是什么？

HandlerThread是一个含有Looper的线程。普通线程是没有Looper的，也就意味着不能直接使用Handler来将其它线程的工作切换到这个线程，需要先自己创建一个Looper。但是HandlerThread则是直接帮我们完成了这个工作。

话不多说，我们直接来看看HandlerThread的源码
public class HandlerThread...]]></description><category></category></item><item><title><![CDATA[ThreadLocal的工作原理]]></title><link>https://blog.youkuaiyun.com/for_My_Future/article/details/95475596</link><guid>https://blog.youkuaiyun.com/for_My_Future/article/details/95475596</guid><author>for_My_Future</author><pubDate>Thu, 11 Jul 2019 14:57:45 +0800</pubDate><description><![CDATA[ThreadLocal是什么

ThreadLocal是一个能够隔离线程的数据存储类。特定线程存储的数据只有该特定线程才能够获取到。

ThreadLocal的原理
低版本中
ThreadLocal中最重要的就是set和get方法，我们一起来看一下
set
	public void set(T value) {
        Thread currentThread = Thread.curre...]]></description><category></category></item><item><title><![CDATA[Handler只看这一篇就够了]]></title><link>https://blog.youkuaiyun.com/for_My_Future/article/details/95315449</link><guid>https://blog.youkuaiyun.com/for_My_Future/article/details/95315449</guid><author>for_My_Future</author><pubDate>Wed, 10 Jul 2019 13:33:50 +0800</pubDate><description><![CDATA[文章目录误区理解Handler和UI的关系
误区
经常有人会这样理解


Android的消息机制就是Handler
Handler就是用来更新UI的


但实际上，正确的理解是


Android消息机制主要指Handler的运行机制，我们大部分的开发中只需要和Handler打交道就可以了,但Handler的底层需要MessageQueue和Looper的支撑。
Handler并不是专门用于更新...]]></description><category></category></item><item><title><![CDATA[Android中的多进程的开启方式]]></title><link>https://blog.youkuaiyun.com/for_My_Future/article/details/95059315</link><guid>https://blog.youkuaiyun.com/for_My_Future/article/details/95059315</guid><author>for_My_Future</author><pubDate>Mon, 08 Jul 2019 14:24:52 +0800</pubDate><description><![CDATA[正常方式
给四大组件在AndroidManifest中添加android:process属性
特殊方式
在JNI的Native层fork一个新的进程
多进程会导致的问题

静态成员和单例的唯一性失效；
SharedPreferences的可靠性下降；
Application会多次创建；


...]]></description><category></category></item><item><title><![CDATA[Android-IntentFilter的匹配规则全解]]></title><link>https://blog.youkuaiyun.com/for_My_Future/article/details/94734070</link><guid>https://blog.youkuaiyun.com/for_My_Future/article/details/94734070</guid><author>for_My_Future</author><pubDate>Fri, 05 Jul 2019 14:51:11 +0800</pubDate><description><![CDATA[什么是IntentFilter
在Android开发中，有显示和隐式两种启动Activity。其中显示非常简单，而隐式调用就涉及到了IntentFilter，这是Intent的一种匹配规则，想隐式的调用特定的Activity，就必须要让Intent匹配想要启动的Activity的IntentFilter。
IntentFilter说明

IntentFilter中有action、category、...]]></description><category></category></item><item><title><![CDATA[Android四大组件重难点]]></title><link>https://blog.youkuaiyun.com/for_My_Future/article/details/87704071</link><guid>https://blog.youkuaiyun.com/for_My_Future/article/details/87704071</guid><author>for_My_Future</author><pubDate>Tue, 19 Feb 2019 13:33:06 +0800</pubDate><description><![CDATA[Activity
生命周期


注意
Acitivity由A-》B切换时，会先执行完A的onPause，然后再执行完成B的OnResume，然后才执行A的onStop，所以不能在onPause中执行耗时操作。
当activity中弹出dialog对话框的时候，activity不会回调onPause。然而当activity启动dialog风格的activity的时候，此activity会回调onPa...]]></description><category></category></item><item><title><![CDATA[Binder简要说明]]></title><link>https://blog.youkuaiyun.com/for_My_Future/article/details/80762223</link><guid>https://blog.youkuaiyun.com/for_My_Future/article/details/80762223</guid><author>for_My_Future</author><pubDate>Thu, 21 Jun 2018 16:16:49 +0800</pubDate><description><![CDATA[一、Binder是什么？

总的来说，Binder是Android中一种较为底层的通信方式，用来让linux系统有效的管理不同的模块，保证安全方式。

从应用层的层面来说，Binder是Android特有的一种IPC（进程间通信）方式，也是Android中效率较高，最为常用的一种方式。

二、Binder有什么用？

Android是基于Linux系统开发的，而Linux是一种多进程操作系统，多进...]]></description><category></category></item><item><title><![CDATA[View的滑动总结]]></title><link>https://blog.youkuaiyun.com/for_My_Future/article/details/80761238</link><guid>https://blog.youkuaiyun.com/for_My_Future/article/details/80761238</guid><author>for_My_Future</author><pubDate>Thu, 21 Jun 2018 15:51:01 +0800</pubDate><description><![CDATA[通过以下三种方式可以实现滑动：    1、通过View本身提供的scrollTo/scrollBy方法来实现滑动；    2、通过动画给View施加平移来实现滑动；    3、通过改变View的布局参数来实现滑动。下面分别介绍这三种滑动方式的区别：   首先要介绍一下View的基本位置参数：    Android3.0之前，View的基本位置参数有：left、right、top、bottom（都是...]]></description><category></category></item><item><title><![CDATA[基于Android开发的天气预报app(源码下载)]]></title><link>https://blog.youkuaiyun.com/for_My_Future/article/details/72752626</link><guid>https://blog.youkuaiyun.com/for_My_Future/article/details/72752626</guid><author>for_My_Future</author><pubDate>Thu, 25 May 2017 20:37:35 +0800</pubDate><description><![CDATA[基于AndroidStudio环境开发的天气app

-系统总体介绍：本天气app使用AndroidStudio这个IDE工具在Windows10系统下进行开发。主要实现了：1、定位城市天气显示；2、城市编辑功能（增、删、改、查）以及对应天气显示信息的改变；3、天气信息的Widget窗口显示（城市的编辑功能可以远程的更新Widget窗口信息的显示）4、下拉刷新、天气显示界面左右滑动、城市拖拽等小模...]]></description><category></category></item><item><title><![CDATA[面试c++研发工程师需要看哪些书]]></title><link>https://blog.youkuaiyun.com/for_My_Future/article/details/51441636</link><guid>https://blog.youkuaiyun.com/for_My_Future/article/details/51441636</guid><author>for_My_Future</author><pubDate>Wed, 18 May 2016 10:12:33 +0800</pubDate><description><![CDATA[本文主要是我现阶段对将要学习的几本书的罗列，并不保证对大家有用，如果没兴趣可以不用继续看下去了，谢谢。如果你有什么建议和指导，欢迎交流，谢谢!
１.对linux C 编程的学习。PS: Linux是一个非常经典的系统，熟练的掌握它能够让你后面的学习变得更加高效和深入。
《linux C 编程》、《linux 操作系统原理与运用》
２.对c++能有一个良好的基础和深入的认识。PS: 不管学什么]]></description><category></category></item></channel></rss>