<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[Rentee的博客]]></title><description><![CDATA[天下武功，无坚不摧，唯快不破。]]></description><link>https://blog.youkuaiyun.com/rentee</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; rentee]]></copyright><item><title><![CDATA[跨平台技术选型及对比——主要考虑客户端Android/iOS]]></title><link>https://blog.youkuaiyun.com/rentee/article/details/105347720</link><guid>https://blog.youkuaiyun.com/rentee/article/details/105347720</guid><author>rentee</author><pubDate>Mon, 06 Apr 2020 22:21:17 +0800</pubDate><description><![CDATA[方案
Flutter
Kotlin Native
C++
Rust




是否支持UI跨平台
是
否
否
否


性能（C++为最高基准）
80
90
100
95


包体
Android约增加4.0M+, iOS约增加10.8M+(瘦身后约7M+) How big is the Flutter engine  包体积分析 [咸鱼瘦身攻略](https://juejin.im/post...]]></description><category></category></item><item><title><![CDATA[ARouter基本使用与原理浅析]]></title><link>https://blog.youkuaiyun.com/rentee/article/details/88596659</link><guid>https://blog.youkuaiyun.com/rentee/article/details/88596659</guid><author>rentee</author><pubDate>Sat, 16 Mar 2019 15:52:33 +0800</pubDate><description><![CDATA[ARouter，A framework for assisting in the renovation of Android componentization (帮助 Android App 进行组件化改造的路由框架) —— 支持模块间的路由、通信、解耦
官方中文介绍：
https://github.com/alibaba/ARouter/blob/master/README_CN.md
（中文比...]]></description><category></category></item><item><title><![CDATA[Short.compare NoSuchMethodError]]></title><link>https://blog.youkuaiyun.com/rentee/article/details/88568875</link><guid>https://blog.youkuaiyun.com/rentee/article/details/88568875</guid><author>rentee</author><pubDate>Fri, 15 Mar 2019 11:07:04 +0800</pubDate><description><![CDATA[起因
项目中需要对数据排序，故需要比较数据属性值的一些大小，而看到Short/Integer/Long/Boolean这些类中，有compare方法可以使用，于是用了起来。
Crash
4.3及以下系统版本，运行到Short.compare时，程序崩溃，堆栈如下：
java.lang.NoSuchMethodError: java.lang.Short.compare
at com.rentee....]]></description><category></category></item><item><title><![CDATA[List.subList方法导致的StackOverflowError]]></title><link>https://blog.youkuaiyun.com/rentee/article/details/84895983</link><guid>https://blog.youkuaiyun.com/rentee/article/details/84895983</guid><author>rentee</author><pubDate>Sat, 08 Dec 2018 18:41:46 +0800</pubDate><description><![CDATA[0x1.异常概览
java.lang.StackOverflowError
java.util.AbstractList$SubAbstractList.listIterator(AbstractList.java:308)
java.util.AbstractList$SubAbstractList.listIterator(AbstractList.java:308)
......
java....]]></description><category></category></item><item><title><![CDATA[数据结构——聊聊Java/Android的Mutable]]></title><link>https://blog.youkuaiyun.com/rentee/article/details/82999955</link><guid>https://blog.youkuaiyun.com/rentee/article/details/82999955</guid><author>rentee</author><pubDate>Wed, 10 Oct 2018 17:16:05 +0800</pubDate><description><![CDATA[闲来无事，翻了翻android.jar包的代码，看能不能吸取下Google工程师的精髓。
在android.util包下，看到了MutableInt、MutableDouble…这几个类。
搜了搜，Java自己的包里面也有一套Mutable。故探究一下。
mutable：易变的
0x1. 实现
以MutableInt为例，Android包的实现很简单：
public final class Mut...]]></description><category></category></item><item><title><![CDATA[android annotations]]></title><link>https://blog.youkuaiyun.com/rentee/article/details/82733943</link><guid>https://blog.youkuaiyun.com/rentee/article/details/82733943</guid><author>rentee</author><pubDate>Mon, 17 Sep 2018 11:11:52 +0800</pubDate><description><![CDATA[@CallSuper 
必须调用父类的此方法，即super.xxx() 
例如你写一些公共超类，例如BaseActivity时，你希望子类必须调用BaseActivity.onCreate()方法（例如你要在此做一些统计），你可以在BaseActivity.onCreate()上加上此注解。



@CheckResult 
此方法的返回值必须得到处理。 
例如：



@CheckResult
...]]></description><category></category></item><item><title><![CDATA[架构--探索Architecture Component之TaskExecutor]]></title><link>https://blog.youkuaiyun.com/rentee/article/details/82630236</link><guid>https://blog.youkuaiyun.com/rentee/article/details/82630236</guid><author>rentee</author><pubDate>Tue, 11 Sep 2018 19:37:10 +0800</pubDate><description><![CDATA[万丈架构平地起，带你拆解Google Android Architecture Component（以下简称 Arch）系列之一。



此次解析比较简约且独立的部分，android.arch.core.executor包。让我们来学习下Google的TaskExecutor。



此包从属于android.arch.core:runtime  可以理解为acrh的基础工具集。



包下就三个...]]></description><category></category></item><item><title><![CDATA[Java之禅——软/弱引用踩坑记]]></title><link>https://blog.youkuaiyun.com/rentee/article/details/81334995</link><guid>https://blog.youkuaiyun.com/rentee/article/details/81334995</guid><author>rentee</author><pubDate>Thu, 02 Aug 2018 16:24:01 +0800</pubDate><description><![CDATA[看到这篇文章，想必已经弱应用/软引用有一定了解了。且平时也会用它来干些什么，比如防止内存泄露等。 
下面请先阅读一段manager代码：



/**
 * 生命周期很长的一个类，例如管理类这种单例
 */
public class LongLifeManager {
    public static final String TAG = &amp;amp;quot;LongLifeManager&amp;amp;quot;;

    priv...]]></description><category></category></item><item><title><![CDATA[Android开发工程师iOS之旅--单例模式]]></title><link>https://blog.youkuaiyun.com/rentee/article/details/80922180</link><guid>https://blog.youkuaiyun.com/rentee/article/details/80922180</guid><author>rentee</author><pubDate>Thu, 05 Jul 2018 09:47:30 +0800</pubDate><description><![CDATA[+ (AppManager *)shareInstance { //Java中喜欢命名为getInstance，但是这里用shareInstance，因为get前缀在OC中有特殊含义
    static AppManager *instance; //与Java的static可不一样，这里的局部变量instance的存储区会从栈区放到静态存储区，从而延长了其生命周期，下次调用shareInsta...]]></description><category></category></item><item><title><![CDATA[Android开发工程师iOS之旅--Objective-C]]></title><link>https://blog.youkuaiyun.com/rentee/article/details/80922052</link><guid>https://blog.youkuaiyun.com/rentee/article/details/80922052</guid><author>rentee</author><pubDate>Thu, 05 Jul 2018 09:41:24 +0800</pubDate><description><![CDATA[野指针：野指针就是指向垃圾内存的指针，这个指针地址不是NULL。指向的对象被释放了，但是这个指针还没有置为nil，再次访问指向的值的时候就会出现不可预期的错误 
僵尸指针：“僵尸指针”就是野指针的一种情况，即该指针指向的对象已经被释放，但是却没有对当前指针赋值为nil。 
僵尸对象：简单的来说，僵尸对象是已经被释放的对象。如果在程序中再度使用该对象，一般会出现报错：unrecognized sel...]]></description><category></category></item><item><title><![CDATA[Android去掉/混淆Log，反编译都看不到]]></title><link>https://blog.youkuaiyun.com/rentee/article/details/80502029</link><guid>https://blog.youkuaiyun.com/rentee/article/details/80502029</guid><author>rentee</author><pubDate>Tue, 29 May 2018 20:57:37 +0800</pubDate><description><![CDATA[出发点： 
当然是由于编程习惯太好，打了一堆中文log，其实只是想给测试看。然而如果包被反编译，看log基本都能理解流程了，有点尴尬。所以此文主要探究proguard配置，以去除log。



以下过程示例，来自于这段代码。



public class MainActivity extends AppCompatActivity {
    private static final Strin...]]></description><category></category></item><item><title><![CDATA[Android关于Activity屏蔽/拦截Home键]]></title><link>https://blog.youkuaiyun.com/rentee/article/details/79246776</link><guid>https://blog.youkuaiyun.com/rentee/article/details/79246776</guid><author>rentee</author><pubDate>Sat, 03 Feb 2018 18:17:07 +0800</pubDate><description><![CDATA[Home键屏蔽/拦截原理阐释]]></description><category></category></item><item><title><![CDATA[从探讨Kotlin单例实现讲讲其与Java代码的互相转换]]></title><link>https://blog.youkuaiyun.com/rentee/article/details/78632200</link><guid>https://blog.youkuaiyun.com/rentee/article/details/78632200</guid><author>rentee</author><pubDate>Sat, 25 Nov 2017 15:34:28 +0800</pubDate><description><![CDATA[1.Kotlin与Java代码的互转。
2.Kotlin单例的实现细节（线程安全、饿汉）。]]></description><category></category></item><item><title><![CDATA[Android O(8.0)通知栏适配]]></title><link>https://blog.youkuaiyun.com/rentee/article/details/78303532</link><guid>https://blog.youkuaiyun.com/rentee/article/details/78303532</guid><author>rentee</author><pubDate>Sat, 21 Oct 2017 14:48:07 +0800</pubDate><description><![CDATA[Android O 适配、NotificationChannel]]></description><category></category></item><item><title><![CDATA[Android O(8.0)创建桌面快捷方式]]></title><link>https://blog.youkuaiyun.com/rentee/article/details/77005547</link><guid>https://blog.youkuaiyun.com/rentee/article/details/77005547</guid><author>rentee</author><pubDate>Wed, 09 Aug 2017 17:18:54 +0800</pubDate><description><![CDATA[Android O、Android 8.0、版本适配、桌面快捷方式]]></description><category></category></item><item><title><![CDATA[Android Matrix]]></title><link>https://blog.youkuaiyun.com/rentee/article/details/54926703</link><guid>https://blog.youkuaiyun.com/rentee/article/details/54926703</guid><author>rentee</author><pubDate>Wed, 08 Feb 2017 14:42:48 +0800</pubDate><description><![CDATA[Matrix pre post set]]></description><category></category></item><item><title><![CDATA[Android通知栏监听之NotificationListenerService]]></title><link>https://blog.youkuaiyun.com/rentee/article/details/54546514</link><guid>https://blog.youkuaiyun.com/rentee/article/details/54546514</guid><author>rentee</author><pubDate>Sun, 15 Jan 2017 11:13:38 +0800</pubDate><description><![CDATA[NotificationListenerService]]></description><category></category></item><item><title><![CDATA[Android源代码下载、编译、运行]]></title><link>https://blog.youkuaiyun.com/rentee/article/details/53911408</link><guid>https://blog.youkuaiyun.com/rentee/article/details/53911408</guid><author>rentee</author><pubDate>Wed, 28 Dec 2016 17:48:04 +0800</pubDate><description><![CDATA[Android、源码、下载、编译、模拟器]]></description><category></category></item><item><title><![CDATA[Android属性动画优化（更高效的使用属性动画）]]></title><link>https://blog.youkuaiyun.com/rentee/article/details/52251829</link><guid>https://blog.youkuaiyun.com/rentee/article/details/52251829</guid><author>rentee</author><pubDate>Fri, 19 Aug 2016 16:03:30 +0800</pubDate><description><![CDATA[Android属性动画优化]]></description><category></category></item><item><title><![CDATA[Android雪花下落效果]]></title><link>https://blog.youkuaiyun.com/rentee/article/details/52223705</link><guid>https://blog.youkuaiyun.com/rentee/article/details/52223705</guid><author>rentee</author><pubDate>Tue, 16 Aug 2016 18:06:48 +0800</pubDate><description><![CDATA[Android雪花飘落\下雪\Snowflakes View\Fall Snow View\Snow Flower View]]></description><category></category></item></channel></rss>