#深度理解Android技术总结

深度理解Android技术总结

Android基础

开发文档

https://developer.android.com/guide/index.html?hl=zh-cn

阿里巴巴Android开发规范

https://github.com/Blankj/AndroidStandardDevelop

框架层知识点

分层架构 MVC MVVM MVP
https://developer.android.com/topic/libraries/architecture/guide.html
https://github.com/googlesamples/android-architecture
https://github.com/googlesamples/android-architecture-components
组件化 模块化 容器化 Atlas small
https://yq.aliyun.com/articles/7239
依赖注入 Dagger2
https://toutiao.io/posts/5a3fp5/preview
AOP面向切面编程 Aspectj
http://blog.csdn.net/xwh_1230/article/details/78213160
http://blog.csdn.net/xwh_1230/article/details/78225258
事件驱动 EventBus otto EventPoster
http://blog.csdn.net/android2me/article/details/66973037
RxJava数据异步
http://blog.csdn.net/caihongdao123/article/details/51897793
https://www.jianshu.com/p/5e93c9101dc5
Http Restful请求框架Retrofit
https://segmentfault.com/a/1190000005638577
框架列表
https://www.ctolib.com/cheatsheets-Android-ch.html
常用的Util
https://github.com/Blankj/AndroidUtilCode/blob/master/utilcode/README-CN.md
Android开源项目源码解析
https://github.com/android-cn/android-open-project-analysis

Android中间件

插件化

http://blog.csdn.net/ganyao939543405/article/details/76146760

热修复

https://github.com/Tencent/tinker/wiki

Hook框架

http://www.snowdream.tech/2016/09/02/android-install-xposed-framework/
https://jaq.alibaba.com/community/art/show?articleid=809

VirtualXposed 和epic

https://github.com/android-hacker/VirtualXposed
https://github.com/tiann/epic
http://weishu.me/2017/12/02/non-root-xposed/

Android性能优化

性能指标

  • 流畅更快 卡顿,启动速度,页面显示速度,响应速度
  • 稳定更稳 Crash, ANR
  • 节省更省 内存,CPU,安装包大小,存储,功耗电量,网络

https://github.com/openthos/openthos/wiki/understand-android
https://www.kancloud.cn/kancloud/android-performance/53238
https://developer.android.com/topic/performance/index.html
https://developer.android.com/studio/profile/index.html

流畅性

启动速度

https://developer.android.com/topic/performance/launch-time.html
https://juejin.im/post/5874bff0128fe1006b443fa0

页面响应速度优化

https://www.zhihu.com/question/47702122
http://www.cnblogs.com/lzl-sml/p/5223704.html

UI渲染显示速度提升

https://blog.csdn.net/yanbober/article/details/48394201

稳定性

稳定性分析及工具

Android Device Monitor

Android Device Monitor is a standalone tool that provides a UI for several Android app debugging and analysis tools.However, most components of the Android Device Monitor are deprecated in favor of updated tools available in Android Studio 3.0 and higher. The table below helps you decide which developer tools you should use.

Android Device Monitor component What you should use

  • Dalvik Debug Monitor Server (DDMS)
    This tool is deprecated. Instead, use Android Profiler in Android Studio 3.0 and higher to profile your app's CPU, memory, and network usage.
    If you want to perform other debugging tasks, such as sending commands to a connected device to set up port-forwarding, transfer files, or take screenshots, then use the Android Debug Bridge (adb), Android Emulator, Device File Explorer, or Debugger window.

  • Traceview
    If you want to inspect existing .trace files, or ones you've captured by instrumenting your app with the Debug class, keep using Traceview.
    If you want to record new method traces and inspect realtime CPU usage of your app's processes, use Android Studio's CPU profiler.

  • Systrace
    If you need to inspect native system processes and address UI jank caused by dropped frames, use systrace from the command line.
    Otherwise, use Android Studio's CPU profiler to profile your app's processes.

  • Tracer for OpenGL ES Use the Graphics API Debugger.

  • Hierarchy Viewer
    If you want to inspect your app's view hierarchy at runtime, use Layout Inspector.

If you want to profile the rendering speed of your app's layout, use Window.OnFrameMetricsAvailableListener as described in this blog post.

Pixel Perfect Use Layout Inspector.

ANR分析套路
http://maoao530.github.io/2017/02/21/anr-analyse/
https://blog.csdn.net/sinat_34157462/article/details/78651870
https://blog.csdn.net/wei_lei/article/details/70311702
http://www.cnblogs.com/purediy/p/3225060.html

crash - 内存泄露OutOfMemoryError

https://www.jianshu.com/u/b8dad3885e05
http://rayleeya.iteye.com/blog/1956059
http://www.voidcn.com/article/p-txoxuyet-bqt.html
https://juejin.im/entry/59f7ea06f265da43143ffee4
http://blog.csdn.net/qyf2010qyf/article/details/52852000

节省性

减少apk安装包大小

https://developer.android.com/topic/performance/reduce-apk-size.html#apk-structure
避免使用枚举
https://zhuanlan.zhihu.com/p/25865835
http://www.10tiao.com/html/330/201704/2653578978/2.html
https://blog.csdn.net/hp910315/article/details/48975655
https://blog.csdn.net/my_truelove/article/details/70519234

减少过渡后台,android后台优化

https://developer.android.com/training/best-background.html

减少view绘制过度

https://blog.csdn.net/qq_19711823/article/details/65627790
https://www.jianshu.com/p/2cc6d5842986
https://blog.csdn.net/yanbober/article/details/48394201
https://yq.aliyun.com/articles/82572

减少流量消耗

https://developer.android.com/topic/performance/vitals/bg-network-usage.html#detect_the_problem
https://developer.android.com/training/basics/network-ops/data-saver.html#monitor-changes

减少电量消耗

https://developer.android.com/topic/performance/power/index.html

减少内存占用

https://developer.android.com/topic/performance/memory.html#code
https://developer.android.com/topic/performance/memory-overview.html

性能优化的建议

https://blog.csdn.net/carson_ho/article/details/79708444
https://juejin.im/post/5a0d30e151882546d71ee49e
https://www.ctolib.com/docs/sfile/notes-master/Android-Java/AndroidPerformancePatterns.html
https://github.com/Piasy/notes/blob/master/Android-Java/AndroidPerformancePatterns.md
https://www.jianshu.com/u/fdb392adfbed
https://segmentfault.com/a/1190000012413613
https://zhuanlan.zhihu.com/p/26364608

Android优化checklist

https://aeli.gitbooks.io/android-training-course/performance/performance-tips.html

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 159,569评论 4 363
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 67,499评论 1 294
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 109,271评论 0 244
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 44,087评论 0 209
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 52,474评论 3 287
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 40,670评论 1 222
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 31,911评论 2 313
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 30,636评论 0 202
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 34,397评论 1 246
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 30,607评论 2 246
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 32,093评论 1 261
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 28,418评论 2 254
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 33,074评论 3 237
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 26,092评论 0 8
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 26,865评论 0 196
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 35,726评论 2 276
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 35,627评论 2 270

推荐阅读更多精彩内容

  • Android 自定义View的各种姿势1 Activity的显示之ViewRootImpl详解 Activity...
    passiontim阅读 170,569评论 25 707
  • afinalAfinal是一个android的ioc,orm框架 https://github.com/yangf...
    wgl0419阅读 6,129评论 1 9
  • 第十三章搜魂使 在黑狼逃进酒馆之后,外面就只剩刀疤独自和毛脸猴公周旋。 毛脸猴公一双肉掌化作两条长鞭,似两把长刀将...
    老江嫩聪阅读 221评论 0 2
  • 那年,我们初中考试,正好我和他坐,可那时我们谁也不认识谁,只知道名字。就连问他拿QQ都没有勇气,我当时还在想,他应...
    847cfa6df517阅读 129评论 1 2
  • 今天爬山的时候脑子里一直在想一些想不通的问题,一直想一直想,想不出来就看眼前,就爬山,就从大自然中找规律。同样是一...
    小际阅读 234评论 2 0