ANR mechanism and problem analysis

https://duanqz.github.io/2015-10-12-ANR-Analysis 1. Overview ANR(Application Not Responding) is a simple definition, but it covers many design ideas of Android system. Firstly, ANR belongs to the category of application, which is different from SNR (system not responding). The problem reflected by SNR is that the system_server has lost its re ...

Posted by figuringout on Thu, 18 Nov 2021 21:52:14 -0800

Advanced UI growth path, in-depth understanding of Android 8.0 View touch event distribution mechanism

prefaceIn the previous article, we introduced the basic knowledge of View and the implementation of View sliding. This article will bring you a core knowledge point of View, event distribution mechanism. Event distribution mechanism is not only a core knowledge point, but also a difficulty in Android. Let's analyze the transmission of events fr ...

Posted by kubis on Thu, 18 Nov 2021 00:15:02 -0800

Android Handler mechanism: relationship among Looper, Handler, MessageQueue and Message

1, OverviewHandler is the mechanism for handling asynchronous messages in Android. To sum up, Looper, handler, MessageQueue and Message are: Looper is responsible for creating a MessageQueue, then entering an infinite loop body, constantly reading messages from the MessageQueue, and then calling back the corresponding Message processing functio ...

Posted by romeo on Wed, 17 Nov 2021 19:33:40 -0800

Jetpack Lifecycle source code analysis

1, Lifecycle Lifecycle is a lifecycle aware component in Jetpack. It is used to store information about the lifecycle state of an Activity or Fragment, and allow other objects to observe this state. Lifecycle uses state and event enumerations to track the lifecycle state of its associated components. 2, Basic use   Using Lifecycle to o ...

Posted by ibelimb on Wed, 17 Nov 2021 05:25:09 -0800

Power system power flow (realized by Matlab)

catalogue 1. Overview 2. Main tasks 3. Main content 4. PowerWorld simulation (1) Normal operation   (2) Load increase (3) Increase of generator output   5. MATLAB programming example (1) Flow chart of power flow calculation program (2) Program code of power flow calculation   6. Data acquisition (Baidu online disk) 1 ...

Posted by Pantho on Wed, 17 Nov 2021 00:58:12 -0800

Android dial application source code analysis

Engineering dependency com.android.dialer is the main project and depends on com.android.contacts.common project and com.android.phone.common project com.android.contacts.common depends on com.android.phone.common project and com.android.common project In addition, some support packages are also introduced as link projects. The above codes ...

Posted by zszucs on Tue, 16 Nov 2021 22:54:57 -0800

Flutter difficult and miscellaneous diseases series: realize the vertical centering of Chinese text

Author: byte hopping terminal technology -- Lin Xuebin 1, Background Since we often have button scenarios in business development, we require that the description text in the UI should be vertically centered as much as possible. However, in the process of development, we often encounter the problem that the text is not vertically centered as ...

Posted by sajlent on Tue, 16 Nov 2021 22:02:55 -0800

This may be the most "powerful" memory leak detection scheme in fluent

Author: Wu ZhiweiIn the past two years, Flutter technology has been used more or less in both innovative applications and old flagship applications. However, the most common problem reported by the Flutter business team is that the memory consumption of Flutter is too high.The reasons for the high memory usage of the Flutter are complex, so it ...

Posted by digitalgod on Tue, 16 Nov 2021 20:31:55 -0800

Android AsyncTask implementation principle and tips sharing

Why use AsyncTaskWe all write apps on the principle that the main thread cannot run tasks that require a lot of CPU time slices, such as a large number of complex floating-point operations, large disk IO operations, network socket s, etc., which will lead to slow response of our main thread to users and even ANR, which will deteriorate the user ...

Posted by HDMICable on Tue, 16 Nov 2021 20:18:09 -0800

Kotlin announces a super feature

Kotlin 1.5 announced a blockbuster feature   value class, which is a very practical feature to improve code readability and performance, because the compiler will further optimize it and reduce the creation of objects. With the continuous improvement of Kotlin, a series of features have emerged   inner class  ,  data class ...

Posted by Helljumper on Tue, 16 Nov 2021 04:59:30 -0800