随笔分类 -  Android从零开始

摘要:一、MessageQueue介绍 /** * Low-level class holding the list of messages to be dispatched by a * {@link Looper}. Messages are not added directly to a Messa 阅读全文
posted @ 2021-02-05 16:27 灰熊Grizzly 阅读(611) 评论(0) 推荐(0)
摘要:一、Message定义 Message类官方介绍如下: /** * User-defined message code so that the recipient can identify * what this message is about. Each {@link Handler} has 阅读全文
posted @ 2021-02-05 14:23 灰熊Grizzly 阅读(2365) 评论(0) 推荐(0)
摘要:Android IPC机制——— Binder方式解析 Binder解决了进程间通讯的问题,想要了解Binder,需要先了解一下Android的AIDL。 阅读全文
posted @ 2020-11-23 17:34 灰熊Grizzly 阅读(93) 评论(0) 推荐(0)
摘要:Android启动都做了什么(API 25) 1.点击启动一个app,Launcher进程采用Binder IPC向ActivityManagerService发起startActivity请求; 2.ActivityManagerService接收到请求后,向zygote进程发送创建进程的请求; 阅读全文
posted @ 2020-10-31 13:15 灰熊Grizzly 阅读(175) 评论(0) 推荐(0)