Thread.currentThread().getName() and this Getname() difference explanation

Python wechat ordering applet course video https://edu.csdn.net/course/detail/36074 Python actual combat quantitative transaction financial management system https://edu.csdn.net/course/detail/35475 Detailed explanation of currentThread currentThread method is a static method of Thread class, which is used to obtain the currently running c ...

Posted by kb0000 on Sun, 20 Feb 2022 17:16:21 +0100

Enjoy learning jetpack - the core principle of lifecycle: lifecycle registry

Core class: Lifecycle can effectively avoid memory leakage and solve common problems in android life cycle. It is an object representing android life cycle and status; Lifecycle is an abstract class that implements the subclass LifecycleRegistry public class LifecycleRegistry extends Lifecycle{ ...... } Application of lifecycle registry i ...

Posted by philipreed on Sun, 20 Feb 2022 17:08:05 +0100

OkHttp source code analysis (builder mode, responsibility chain mode, main process)

Before analyzing the core processes of OkHttp and the core classes, let's clarify two concepts: one is the builder mode used by OkHttpClient and Request when they are created; The other is the interceptor mode responsible for response processing; Analysis of builder mode of OkHttpClient/Request Basic concepts The builder (also known as the b ...

Posted by mass on Sun, 20 Feb 2022 16:10:10 +0100

Third, the mechanism of Window creation and Android Window Manager. (source code version SDK31)

Android window mechanism SDK31 source code analysis directory First acquaintanceCreation and loading of DecorView and subdicorCreation and loading of Window and Window ManagerThe creation of ViewRootImpl and the real loading of the viewEvent distribution for ViewRootImplMust be in the main thread to update the UI? Why?Relationship between Toke ...

Posted by norpel on Sun, 20 Feb 2022 11:27:59 +0100

Summary of underlying data structure and class of camera HAL of Android Camera principle

There are many data structures in the camera HAL layer. When looking at the code, we often look for a long time to understand these data structures. In order to facilitate everyone's study, we specially summarize some data structures and their locations: 1.hardware/libhardware/include/hardware/camera_common.h: 1.1 camera_info_t : camera_info ...

Posted by jpopuk on Sun, 20 Feb 2022 05:36:02 +0100

Android Window series - window and decorview

summary Window is a very common concept in android. Common knowledge points such as Activity, Dialog and Toast are inseparable from window. Therefore, the author arranges the knowledge related to the next window, hoping to help the readers in need. window official description The description of window in the source code of window is as follo ...

Posted by xzilla on Sun, 20 Feb 2022 05:07:01 +0100

Pop! Pop! Give JobIntentService an injection, a big injection of Hilt, see if you're happy? Oh, I can't see the result.

0. Introduction Service Service doesn't have to be used for a long time. Isn't it a long servant? We can use JobIntentService -- temporary servant. It's good to live and die with your App! However, it's easy to start and there's no clue to shut down. Because the service runs in the background, it has nothing to do with the UI. If we use MVVM, ...

Posted by johng on Sun, 20 Feb 2022 04:15:14 +0100

Advanced Android - lightweight cross process Message delivery tool Messenger details

introduction As Android developers, I believe we must be very familiar with the Message mechanism, and we must be in charge of using Handler to process messages. If you are allowed to use the simplest way to realize interprocess communication, a considerable number of beginners may think of using AIDL to realize it themselves. It is true t ...

Posted by dawho9 on Sat, 19 Feb 2022 23:55:15 +0100

Paging3 make complaints about Tucao.

This article is also published in my WeChat official account. It can scan the two-dimensional code at the bottom of the article or search for Guo Lin in WeChat. Good morning, guys. With the official release of Android 11, the Jetpack family has also introduced many new members. I promised before that I would write an article to introduce th ...

Posted by mrgrinch12 on Sat, 19 Feb 2022 23:10:31 +0100

Analysis of Android HAL layer framework

The previous analysis shows how the android HAL layer searches for the dynamic shared library of hardware modules. In fact, it is to find the shared library modueid under the two paths of "system/lib/hw /" or "/ vendor/lib/hw /" variant. After so, load the library by calling the load function. Now let's enter the load funct ...

Posted by polybiosis on Sat, 19 Feb 2022 17:39:38 +0100